Jelajahi Sumber

```
feat(remove_bg_pixian): 增强错误信息返回

添加HTTP响应状态码到错误消息中,便于调试和问题定位
```

rambo 3 minggu lalu
induk
melakukan
50d17e16d3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      python/service/remove_bg_pixian.py

+ 1 - 1
python/service/remove_bg_pixian.py

@@ -63,7 +63,7 @@ class Segment(object):
                 print("response.status_code:", response.status_code)
                 data = {"im": None,
                         "status_code": "time_out",
-                        "message":"处理失败"
+                        "message":"处理失败;{}".format(response.status_code)
                         }
                 return data
         except BaseException as e: