修复了常量归类

This commit is contained in:
2026-07-04 19:58:19 +08:00
parent 7608faf396
commit 9d98ac9e83
6 changed files with 40 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
import hmac
import hmac
import threading
import traceback
import uuid
@@ -114,6 +114,14 @@ from ..serializers import PopupPageSerializer
logger = logging.getLogger('houtai')
SHOP_PRODUCT_PERMS = ['1199ab', '1199abc', '1199abd']
# 审核记录状态映射(原位于 zxkf.py按功能组归类到考核模块
SHENHE_ZHUANGTAI_MAP = {
0: '考核中',
1: '已通过',
2: '未通过',
3: '待审核',
}
class KhgglView(APIView):
"""
考核官管理数据接口(列表、筛选、分页)

View File

@@ -1,4 +1,4 @@
import hmac
import hmac
import threading
import traceback
import uuid
@@ -114,6 +114,9 @@ from ..serializers import PopupPageSerializer
logger = logging.getLogger('houtai')
SHOP_PRODUCT_PERMS = ['1199ab', '1199abc', '1199abd']
# 与前端约定的聊天权限码(原位于 shops.py按功能组归类到客服模块
CHAT_PERM_CODES = ['abca1', 'baac2', 'cabc3', 'cb3a2', 'bcaa4']
class KefuGetDashouListView(APIView):
"""
客服获取打手列表接口(仅打手类型)

View File

@@ -1,4 +1,4 @@
import hmac
import hmac
import threading
import traceback
import uuid
@@ -929,11 +929,5 @@ class ProductModifyView(APIView):
if update_fields:
product.save(update_fields=update_fields)
return Response({'code': 0, 'msg': '商品修改成功'})
# 与前端约定的聊天权限码
CHAT_PERM_CODES = ['abca1', 'baac2', 'cabc3', 'cb3a2', 'bcaa4']
return Response({'code': 0, 'msg': '商品修改成功'})

View File

@@ -1,4 +1,4 @@
import hmac
import hmac
import threading
import traceback
import uuid
@@ -345,13 +345,3 @@ class ZxkfghdsView(APIView):
return '游戏订单'
# ==================== 考核记录管理 ====================
SHENHE_ZHUANGTAI_MAP = {
0: '考核中',
1: '已通过',
2: '未通过',
3: '待审核',
}