Browse Source

目录结构

rambo 1 month ago
parent
commit
96544f812e

+ 1 - 1
python/api.py

@@ -1146,7 +1146,7 @@ def get_photo_record_detail(goods_art_no: str = None):
 
 @app.post("/delect_goods_arts", description="通过货号删除记录")
 def delect_goods_arts(params: PhotoRecordDelete):
-    limit_path = "output/{}".format(
+    limit_path = "{}/{}".format(settings.OUTPUT_DIR,
                     time.strftime("%Y-%m-%d", time.localtime(time.time()))
                 )
     handlerFolderDelete(limit_path,params.goods_art_nos,False)

+ 1 - 1
python/service/auto_deal_pics/base_deal.py

@@ -896,7 +896,7 @@ class BaseDealImage(object):
         total_num = len(original_photo_list)
         # 当天日期作为文件夹
         seconds = time.time()
-        output_path = "output/{f_name}".format(f_name=time.strftime("%Y-%m-%d", time.localtime(seconds)))
+        output_path = "{output}/{f_name}".format(output=settings.OUTPUT_DIR,f_name=time.strftime("%Y-%m-%d", time.localtime(seconds)))
 
         # 遍历每个匹配好的数据进行处理
         n = 0

+ 1 - 1
python/service/match_and_cutout_mode_control/base_deal_image_v2.py

@@ -975,7 +975,7 @@ class BaseDealImage(object):
         total_num = len(original_photo_list)
         # 当天日期作为文件夹
         seconds = time.time()
-        output_path = "output/{f_name}".format(f_name=time.strftime("%Y-%m-%d", time.localtime(seconds)))
+        output_path = "{output}/{f_name}".format(output=settings.OUTPUT_DIR,f_name=time.strftime("%Y-%m-%d", time.localtime(seconds)))
 
         # 遍历每个匹配好的数据进行处理
         n = 0

+ 1 - 1
python/service/match_and_cutout_mode_control/module_matching_photos_v2.py

@@ -904,7 +904,7 @@ class MatchingPhotos(MineQWidget):
         total_num = len(original_photo_list)
         # 当天日期作为文件夹
         seconds = time.time()
-        output_path = "output/{f_name}".format(
+        output_path = "{output}/{f_name}".format(output=settings.OUTPUT_DIR,
             f_name=time.strftime("%Y-%m-%d", time.localtime(seconds))
         )
 

+ 1 - 1
python/service/matching_photos/module_matching_photos.py

@@ -553,7 +553,7 @@ class MatchingPhotos(MineQWidget):
         total_num = len(original_photo_list)
         # 当天日期作为文件夹
         seconds = time.time()
-        output_path = "output/{f_name}".format(
+        output_path = "{output}/{f_name}".format(output=settings.OUTPUT_DIR,
             f_name=time.strftime("%Y-%m-%d", time.localtime(seconds))
         )
 

+ 2 - 2
python/sockets/message_handler.py

@@ -252,7 +252,7 @@ async def handlerSend(
                 await manager.send_personal_message(data, websocket)
                 return
             try:
-                limit_path = "output/{}".format(
+                limit_path = "{}/{}".format(settings.OUTPUT_DIR,
                     time.strftime("%Y-%m-%d", time.localtime(time.time()))
                 )
                 move_folder_array = handlerFolderDelete(limit_path,[record.goods_art_no],False)
@@ -416,7 +416,7 @@ async def handlerSend(
             goods_art_no = data.get("goods_art_no", "")
             if goods_art_no:
                 try:
-                    limit_path = "output/{}".format(
+                    limit_path = "{}/{}".format(settings.OUTPUT_DIR,
                         time.strftime("%Y-%m-%d", time.localtime(time.time()))
                     )
                     move_folder_array = handlerFolderDelete(limit_path,[goods_art_no],False)