修复了商家客服登录身份标识问题
This commit is contained in:
@@ -284,6 +284,9 @@ class WechatMiniProgramLoginView(APIView):
|
||||
# 获取群配置
|
||||
group_info = self.huoquQunPeizhi()
|
||||
|
||||
from merchant_ops.services.authz import staff_fields_for_login
|
||||
staff_fields = staff_fields_for_login(user_main)
|
||||
|
||||
# 返回数据
|
||||
response_data = {
|
||||
'token': token,
|
||||
@@ -299,7 +302,8 @@ class WechatMiniProgramLoginView(APIView):
|
||||
'dashouqun': group_info.get('dashouqun', ''),
|
||||
'dashouqunid': group_info.get('dashouqunid', ''),
|
||||
'guanshiqun': group_info.get('guanshiqun', ''),
|
||||
'guanshiqunid': group_info.get('guanshiqunid', '')
|
||||
'guanshiqunid': group_info.get('guanshiqunid', ''),
|
||||
**staff_fields,
|
||||
}
|
||||
|
||||
return Response({'code': 0, 'msg': '登录成功', 'data': response_data})
|
||||
|
||||
Reference in New Issue
Block a user