yf_yzl před 2 roky
rodič
revize
bd3de71d06

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

@@ -225,9 +225,9 @@ def device_photo_list(request):
 
         # TODO 展示图片暂时处理
         if str(i.addr).startswith('http'):
-            img_url = image_path + i.addr
+            img_url = i.addr
         else:
-            img_url = image_path + "/" + i.addr
+            img_url = image_path + i.addr
 
         if str(i.indentify_photo).startswith('http'):
             indentify_photo = i.indentify_photo