手机号注册后刷新存放当前用户可用数量的map
This commit is contained in:
19
middle.html
19
middle.html
@@ -8,7 +8,7 @@
|
||||
<meta property=" og:title" content="飒沓光伏智能体">
|
||||
<meta property="og:description" content="SataBot Agent 是一款由人工智能驱动的光伏场景AI应用程序。">
|
||||
<meta property="og:image" content="http://1.95.137.212:19000/mbzn/16%3A33%3A49123.png">
|
||||
<!-- <script src=" https://unpkg.com/vconsole@latest/dist/vconsole.min.js"> -->
|
||||
<script src=" https://unpkg.com/vconsole@latest/dist/vconsole.min.js">
|
||||
</script>
|
||||
<link rel="prefetch" href="index.html">
|
||||
|
||||
@@ -654,7 +654,7 @@
|
||||
</div>
|
||||
<script>
|
||||
// 开启 vConsole 调试面板
|
||||
// var vConsole = new VConsole();
|
||||
var vConsole = new VConsole();
|
||||
// wx364b8ebf17fe45fe wx0eeb7556d60121db
|
||||
// console.log("✅ vConsole 已经启动");
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
@@ -724,6 +724,7 @@
|
||||
loginPlatForm: 2
|
||||
|
||||
}
|
||||
console.log(id);
|
||||
retryFetch("https://serviceri.satabot.com/login", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
@@ -744,13 +745,13 @@
|
||||
|
||||
// window.location.replace(`https://ai.satabot.com?userId=${encodedUserId}&headingimg=${userInfo.headimgurl}&nickname=${userInfo.nickname}&localtoken=${_token}&t=${t}`)
|
||||
} else if (res.code == 200) {
|
||||
setCookie('token', res.token);
|
||||
const encodedUserId = btoa(unescape(encodeURIComponent(res.userId)));
|
||||
localStorage.setItem('userId', encodedUserId);
|
||||
const t = Date.now();
|
||||
document.body.classList.add('fadeout');
|
||||
// setCookie('token', res.token);
|
||||
// const encodedUserId = btoa(unescape(encodeURIComponent(res.userId)));
|
||||
// localStorage.setItem('userId', encodedUserId);
|
||||
// const t = Date.now();
|
||||
// document.body.classList.add('fadeout');
|
||||
|
||||
window.location.replace(`https://ai.satabot.com?userId=${encodedUserId}&headingimg=${userInfo.headimgurl}&nickname=${userInfo.nickname}&localtoken=${res.token}&t=${t}`)
|
||||
// window.location.replace(`https://ai.satabot.com?userId=${encodedUserId}&headingimg=${userInfo.headimgurl}&nickname=${userInfo.nickname}&localtoken=${res.token}&t=${t}`)
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
@@ -801,7 +802,7 @@
|
||||
const t = Date.now();
|
||||
document.body.classList.add('fadeout');
|
||||
|
||||
window.location.replace(`https://ai.satabot.com?userId=${encodedUserId}&headingimg=${userInfo.headimgurl}&nickname=${userInfo.nickname}&localtoken=${res.token}&t=${t}`)
|
||||
window.location.replace(`https://ai.satabot.com?userId=${encodedUserId}&headingimg=${userInfo.headimgurl}&nickname=${userInfo.nickname}&localtoken=${res.token}&t=${t}&openid=${id}`)
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user