瀏覽代碼

更新数据

yf_yzl 2 年之前
父節點
當前提交
bd3de71d06
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      smartfarming/api/views/forecast/forecast_system.py

+ 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