yf_yzl 2 лет назад
Родитель
Сommit
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