|
@@ -123,13 +123,13 @@ class UserView(View):
|
|
data = {
|
|
data = {
|
|
'code': code
|
|
'code': code
|
|
}
|
|
}
|
|
- r = requests.post(url=url, data=data, timeout=5)
|
|
|
|
|
|
+ r = requests.post(url=url, json=data, timeout=5)
|
|
result = eval(r.content)
|
|
result = eval(r.content)
|
|
errcode = result.get('errcode')
|
|
errcode = result.get('errcode')
|
|
assert errcode == 0
|
|
assert errcode == 0
|
|
- pure_phone_number = result['phone_info']['purePhoneNumber']
|
|
|
|
|
|
+ phone_number = result['phone_info']['purePhoneNumber']
|
|
res = {
|
|
res = {
|
|
- 'pure_phone_number': pure_phone_number
|
|
|
|
|
|
+ 'phone_number': phone_number
|
|
}
|
|
}
|
|
return response.json(0, res)
|
|
return response.json(0, res)
|
|
except Exception as e:
|
|
except Exception as e:
|