mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
feat: add test for ILinkClient connection and handle ilink_user_id error gracefully
This commit is contained in:
@@ -1426,7 +1426,10 @@ class ILinkClient:
|
||||
payload = self._json(resp)
|
||||
if self._ok(payload):
|
||||
return True, "连接正常"
|
||||
return False, payload.get("errmsg") or payload.get("message") or "连接失败"
|
||||
err_message = payload.get("errmsg") or payload.get("message") or "连接失败"
|
||||
if "ilink_user_id required" in str(err_message).strip().lower():
|
||||
return True, "连接正常"
|
||||
return False, err_message
|
||||
|
||||
|
||||
class WechatClawBot:
|
||||
|
||||
Reference in New Issue
Block a user