|
@@ -304,7 +304,7 @@ class EquipmentManagerV3(View):
|
|
p['ucode'] = ''
|
|
p['ucode'] = ''
|
|
data.append(p)
|
|
data.append(p)
|
|
# 缓存时间为一个钟
|
|
# 缓存时间为一个钟
|
|
- redisObj.set_data(key='uid_qs_'+userID, val=data, expire=3600)
|
|
|
|
|
|
+ redisObj.set_data(key='uid_qs_'+userID, val=json.dumps(data), expire=3600)
|
|
result = data
|
|
result = data
|
|
print('分页')
|
|
print('分页')
|
|
# items=[]
|
|
# items=[]
|
|
@@ -326,7 +326,7 @@ class EquipmentManagerV3(View):
|
|
redis_value = json.loads(redis_value)
|
|
redis_value = json.loads(redis_value)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
print(repr(e))
|
|
print(repr(e))
|
|
- return response.json(0, {'data': redis_value})
|
|
|
|
|
|
+ return response.json(0, redis_value)
|
|
result = redis_value
|
|
result = redis_value
|
|
|
|
|
|
if NickName:
|
|
if NickName:
|