fix(cli): use json mode for model_dump serialization #33

Merged
starmen1265 merged 1 commits from fix/crawler-proxy-config into main 2026-03-19 23:00:24 +08:00
+1 -1
View File
@@ -165,7 +165,7 @@ def login_command(
result = login.login_by_qrcode()
if result.success and result.cookie_str:
manager.save_cookie(result.cookie_str)
return result.model_dump()
return result.model_dump(mode='json')
except Exception as e:
return {"success": False, "error": str(e)}