mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 21:11:12 +00:00
增加物料关系上传日志
This commit is contained in:
@@ -99,6 +99,10 @@ class HTTPClient:
|
|||||||
headers={"Authorization": f"{'lab' if not self.backend_go else 'Lab'} {self.auth}"},
|
headers={"Authorization": f"{'lab' if not self.backend_go else 'Lab'} {self.auth}"},
|
||||||
timeout=20,
|
timeout=20,
|
||||||
)
|
)
|
||||||
|
if response.status_code != 200:
|
||||||
|
logger.error(f"添加物料关系失败: {response.text}")
|
||||||
|
elif self.backend_go:
|
||||||
|
logger.info(f"添加物料关系 {response.text}")
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
||||||
def resource_del(self, id: str) -> requests.Response:
|
def resource_del(self, id: str) -> requests.Response:
|
||||||
|
|||||||
Reference in New Issue
Block a user