chenjunkai 5 ani în urmă
părinte
comite
54a34c4d01
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      Controller/AppInfo.py

+ 3 - 3
Controller/AppInfo.py

@@ -173,9 +173,9 @@ class AppInfo(View):
             res = queryset[(page - 1) * line:page * line]
             send_json = CommonService.qs_to_dict(res)
             for k, v in enumerate(send_json["datas"]):
-                if send_json['datas'][k]['img']:
-                    img = SERVER_DOMAIN + 'sysfile/' + send_json['datas'][k]['img']
-                    send_json["datas"][k]['img'] = img
+                if send_json['datas'][k]['fields']['img']:
+                    img = SERVER_DOMAIN + 'sysfile/' + send_json['datas'][k]['fields']['img']
+                    send_json["datas"][k]['fields']['img'] = img
             send_json['count'] = count
             return response.json(0, send_json)
         return response.json(0)