|
@@ -385,14 +385,14 @@ def judgeInterface(request):
|
|
|
else:
|
|
|
return response.json(444)
|
|
|
token = request_dict.get('token', None)
|
|
|
- UID = request_dict.get('UID', None)
|
|
|
- if all([UID, token]):
|
|
|
+ uid = request_dict.get('uid', None)
|
|
|
+ if all([uid, token]):
|
|
|
tko = TokenObject(token)
|
|
|
response.lang = tko.lang
|
|
|
if tko.code == 0:
|
|
|
re_uid = re.compile(r'^[A-Za-z0-9]{20}$')
|
|
|
- if re_uid.match(UID):
|
|
|
- is_bind = Device_Info.objects.filter(UID=UID, isShare=False)
|
|
|
+ if re_uid.match(uid):
|
|
|
+ is_bind = Device_Info.objects.filter(UID=uid, isShare=False)
|
|
|
# 判断是否有已绑定用户
|
|
|
if is_bind:
|
|
|
user = is_bind.values('userID__NickName', 'NickName')
|