[2023-10-30T11:24:07Z INFO corplink_rs::client] text={"code":0,"action":"","message":"","data":[]}
[2023-10-30T11:24:07Z INFO corplink_rs::client] try to login with platform ldap
[2023-10-30T11:24:07Z INFO corplink_rs::client] found set-cookie in header, saving cookie
[2023-10-30T11:24:07Z INFO corplink_rs::client] text={"code":0,"action":"","message":"","data":{"mfa":false,"auth":["password"]}}
[2023-10-30T11:24:08Z INFO corplink_rs::client] found set-cookie in header, saving cookie
[2023-10-30T11:24:08Z INFO corplink_rs::client] text={"code":0,"action":"","message":"","data":{"login_result":"mobile","auth":["otp","mobile"]}}
thread 'main' panicked at src/client.rs:221:57:
called `Result::unwrap()` on an `Err` value: Error("missing field `url`", line: 1, column: 91)
这里返回 JSON 里面没有
url
字段导致出错,请教可能是什么原因?另外请教这个请求要的url
用来做什么的?是用来生成 otp 吗?如果 otp 可以直接生成那这一步有什么作用?