Skip to content

Commit

Permalink
修复二维码表单的字段顺序 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
hguandl authored Mar 26, 2024
1 parent 998cac5 commit 5b74de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/biliup/src/uploader/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ impl Credential {
pub async fn login_by_qrcode(&self, value: Value) -> Result<LoginInfo> {
let mut form = json!({
"appkey": AppKeyStore::BiliTV.app_key(),
"local_id": "0",
"auth_code": value["data"]["auth_code"],
"local_id": "0",
"ts": SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs()
});
let urlencoded = serde_urlencoded::to_string(&form)?;
Expand Down

0 comments on commit 5b74de4

Please sign in to comment.