瀏覽代碼

处理失败,请联系管理员

rambo 8 月之前
父節點
當前提交
7ff9ae375f
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      python/api.py

+ 6 - 2
python/api.py

@@ -210,13 +210,17 @@ async def handle_detail(request: Request, params: HandlerDetail):
         print("out_put_dir", out_put_dir)
         print("goods_art_no", goods_art_no)
         print("goods_art_no not in out_put_dir", goods_art_no not in out_put_dir)
-        # 
+        #
         return {
             "code": 0,
             "msg": "详情处理完成",
             "data": {"out_put_dir": out_put_dir.replace("\\", "/")},
         }
-
+    else:
+        return {
+            "code": 1,
+            "msg": "处理失败,请联系管理员",
+            "data": None}
 
 @app.post("/get_device_configs", description="获取可执行程序命令列表")
 def get_device_configs(params: ModelGetDeviceConfig):