Browse Source

更新数据

yf_yzl 2 years ago
parent
commit
a144499b0b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      smartfarming/api/views/forecast/forecast_system.py

+ 2 - 2
smartfarming/api/views/forecast/forecast_system.py

@@ -230,9 +230,9 @@ def device_photo_list(request):
             img_url = image_path + "/" + i.addr
 
         if str(i.indentify_photo).startswith('http'):
-            indentify_photo = image_path + i.indentify_photo
+            indentify_photo = i.indentify_photo
         else:
-            indentify_photo = image_path + "/" + i.indentify_photo
+            indentify_photo = image_path + i.indentify_photo
         data.append({
             "device_id":i.device_id,
             "addtime":i.addtime,