修复 wx_cfg 误插入 try 块导致的 SyntaxError
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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: # 老板 - 不允许修改
|
||||
|
||||
Reference in New Issue
Block a user