平台端绑定手机号 增加userId

This commit is contained in:
2025-12-29 13:47:13 +08:00
parent 631df78da6
commit f759ac1476
2 changed files with 6 additions and 15 deletions

View File

@@ -1620,7 +1620,7 @@
console.log(params.get("userId"), 644, params.get("nickname"), params.get("headingimg"));
const encodedUserId = params.get("userId");
let openId= params.get("openid")?params.get("openid"):'';
let openId = params.get("openid") ? params.get("openid") : '';
const from = params.get("from");
let token = params.get("token");//app的token
@@ -1726,7 +1726,8 @@
openId: openId,
phonenumber: document.getElementById('sys-phone').value,
smsCode: document.getElementById('code').value,
loginPlatForm: 3
loginPlatForm: 3,
userId: userId
}
retryFetch("https://serviceri.satabot.com/login", {
@@ -1767,7 +1768,7 @@
showToast("登录失败,请重试" + err); // 给用户友好提示
})
.finally(() => {
if (document.querySelector('.popbox .loading-box')) {
document.querySelector('.popbox .loading-box').classList.add('none');
}
@@ -2727,7 +2728,7 @@
}
}
async function refreshAiChatNum() {
async function refreshAiChatNum() {
const data = {
userId: userId
}
@@ -2737,7 +2738,7 @@
body: JSON.stringify(data) // ✅ 加上 signal
});
}
function showpop() {
let html = `<div class='popbox'>