fix: 订单列表、超管1383714110、财务szjilu累计、俱乐部配置API

This commit is contained in:
XingQue
2026-06-24 06:27:01 +08:00
parent b33bd3eb18
commit 5ae01a9ff2
9 changed files with 183 additions and 22 deletions

View File

@@ -93,7 +93,9 @@ def verify_kefu_permission(request, username_from_frontend=None):
current_user = request.user
# ---------- 1. 必须是客服或管理员 ----------
is_admin = current_user.UserType == 'admin' or current_user.IsSuperuser
from jituan.constants import SUPER_ADMIN_PHONES
is_super_phone = getattr(current_user, 'Phone', '') in SUPER_ADMIN_PHONES
is_admin = current_user.UserType == 'admin' or current_user.IsSuperuser or is_super_phone
if current_user.UserType != 'kefu' and not is_admin:
return None, Response({'code': 403, 'msg': '身份错误,非客服账号'}, status=403)