fix: 后台添加角色按客服账号定位;下单OpenID字段名修正
This commit is contained in:
@@ -765,8 +765,8 @@ class CreateOrderView(APIView):
|
||||
with transaction.atomic():
|
||||
# 获取当前用户信息
|
||||
current_user = request.user
|
||||
laoban_yonghuid = getattr(current_user, 'yonghuid', '')
|
||||
user_openid = getattr(current_user, 'openid', '')
|
||||
laoban_yonghuid = getattr(current_user, 'UserUID', '') or getattr(current_user, 'yonghuid', '')
|
||||
user_openid = getattr(current_user, 'OpenID', '') or getattr(current_user, 'openid', '')
|
||||
|
||||
if not user_openid:
|
||||
return Response({'code': 10, 'msg': '用户openid不存在', 'data': None})
|
||||
|
||||
Reference in New Issue
Block a user