修复 wx_cfg 误插入 try 块导致的 SyntaxError

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-06-27 01:17:52 +08:00
parent 2c4ad6e13a
commit 20dbc9ea45
2 changed files with 0 additions and 2 deletions

View File

@@ -3587,7 +3587,6 @@ class ShangjiaTuikuanShenqingView(APIView):
import threading
import requests
from django.conf import settings
from utils.xcx_sys_config import wx_cfg
def send_refund_notify():
url = f"{settings.PARTNER_BASE_URL}{settings.PARTNER_REFUND_NOTIFY_URL}"

View File

@@ -4687,7 +4687,6 @@ class AdcjxgView(APIView):
# 🔒 判断当前管理员是否有增加权限
from django.conf import settings
from utils.xcx_sys_config import wx_cfg
allow_increase = zhanghao in getattr(settings, 'ALLOW_INCREASE_ADMINS', [])
if user_type == 1: # 老板 - 不允许修改