feat: 优化cd.py

This commit is contained in:
caoqianming 2025-09-17 11:15:15 +08:00
parent f7e27c290f
commit 0b4524aa85
1 changed files with 11 additions and 1 deletions

View File

@ -122,6 +122,16 @@ class JSONRequestHandler(BaseHTTPRequestHandler):
res = handle_bytes(resp)
if isinstance(res, str):
if res == "数据头不正确":
sc, resp = connect_and_send()
if sc is None or resp is None:
return
res = handle_bytes(resp)
if isinstance(res, str):
self.error(res)
else:
self.ok(res)
else:
self.error(res)
else:
self.ok(res)