|
@@ -213,6 +213,11 @@ class perfectUserInfoView(TemplateView):
|
|
for k, v in enumerate(res["datas"]):
|
|
for k, v in enumerate(res["datas"]):
|
|
res['datas'][k]['fields'].pop('password')
|
|
res['datas'][k]['fields'].pop('password')
|
|
userIconPath = res['datas'][k]['fields']['userIconPath']
|
|
userIconPath = res['datas'][k]['fields']['userIconPath']
|
|
|
|
+ region_status = res['datas'][k]['fields']['region_status']
|
|
|
|
+ if region_status is True:
|
|
|
|
+ res['datas'][k]['fields']['region_status'] = 1
|
|
|
|
+ else:
|
|
|
|
+ res['datas'][k]['fields']['region_status'] = 0
|
|
if userIconPath and userIconUrl != '':
|
|
if userIconPath and userIconUrl != '':
|
|
res['datas'][k]['fields']['userIconUrl'] = userIconUrl
|
|
res['datas'][k]['fields']['userIconUrl'] = userIconUrl
|
|
return response.json(0, res)
|
|
return response.json(0, res)
|