去掉手机号码弹窗验证 分享添加描述和照片
This commit is contained in:
16
index.html
16
index.html
@@ -7,14 +7,18 @@
|
|||||||
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
|
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
|
||||||
<meta http-equiv="Pragma" content="no-cache">
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
<meta http-equiv="Expires" content="Thu, 01 Jan 1970 00:00:00 GMT">
|
<meta http-equiv="Expires" content="Thu, 01 Jan 1970 00:00:00 GMT">
|
||||||
<title>新能源智能体</title>
|
<meta property=" og:title" content="sata光伏智能体">
|
||||||
|
<meta property="og:description"
|
||||||
|
content="SataBot Agent 是一款由人工智能驱动的光伏场景AI应用程序。SataBot Agent AI 能力基于飒沓自研大模型的 AIGC 服务构建。">
|
||||||
|
<meta property="og:image" content="http://1.95.137.212:19000/mbzn/16%3A33%3A49123.png">
|
||||||
|
|
||||||
|
<title>sata光伏智能体</title>
|
||||||
<link rel="icon" href="./img/logo.png" type="image/x-icon">
|
<link rel="icon" href="./img/logo.png" type="image/x-icon">
|
||||||
<!-- <script src=" https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxopensdk.js"> -->
|
<!-- <script src=" https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxopensdk.js"> -->
|
||||||
<!-- </script> -->
|
<!-- </script> -->
|
||||||
<script src="./marked.min.js"></script>
|
<script src="./marked.min.js"></script>
|
||||||
|
|
||||||
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
@@ -1627,11 +1631,15 @@
|
|||||||
|
|
||||||
if ((!getCookie("token") || localtoken != getCookie("token")) && isMobile() && !token) {
|
if ((!getCookie("token") || localtoken != getCookie("token")) && isMobile() && !token) {
|
||||||
window.location.href = './middle.html';
|
window.location.href = './middle.html';
|
||||||
} else if (!isMobile() && !getCookie('sharetoken')) {
|
} else if (!isMobile() && !getCookie('sharetoken')) {//网页端token
|
||||||
//
|
//
|
||||||
location.replace('https://ri.satabot.com/#/login?goRemote=1&clear=1');
|
location.replace('https://ri.satabot.com/#/login?goRemote=1&clear=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if (!isMobile() && !getCookie('sharetoken')) {
|
||||||
|
// location.replace('https://ri.satabot.com/#/login?goRemote=1&clear=1');
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ✅ 先 URL 解码,再 Base64 解码,再 UTF-8 解码
|
// ✅ 先 URL 解码,再 Base64 解码,再 UTF-8 解码
|
||||||
@@ -2035,6 +2043,7 @@
|
|||||||
chatList.innerHTML = '';
|
chatList.innerHTML = '';
|
||||||
|
|
||||||
if (!sessIdList || sessIdList.length == 0) {
|
if (!sessIdList || sessIdList.length == 0) {
|
||||||
|
activeChatId = null;
|
||||||
chatMessages.innerHTML = "";
|
chatMessages.innerHTML = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2467,6 +2476,7 @@
|
|||||||
e.classList.add('none')
|
e.classList.add('none')
|
||||||
|
|
||||||
})
|
})
|
||||||
|
// renderChatList();
|
||||||
msgDiv.innerHTML = marked.parse(aiMsg.content);
|
msgDiv.innerHTML = marked.parse(aiMsg.content);
|
||||||
const shareSpan = document.createElement("span");
|
const shareSpan = document.createElement("span");
|
||||||
shareSpan.style.display = "inline-flex";
|
shareSpan.style.display = "inline-flex";
|
||||||
|
|||||||
15
middle.html
15
middle.html
@@ -5,6 +5,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"">
|
||||||
<title>新能源智能体</title>
|
<title>新能源智能体</title>
|
||||||
|
<meta property=" og:title" content="新能源智能体">
|
||||||
|
<meta property="og:description"
|
||||||
|
content="SataBot Agent 是一款由人工智能驱动的光伏场景AI应用程序。SataBot Agent AI 能力基于飒沓自研大模型的 AIGC 服务构建。">
|
||||||
|
<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>
|
</script>
|
||||||
<link rel="prefetch" href="index.html">
|
<link rel="prefetch" href="index.html">
|
||||||
@@ -728,7 +732,16 @@
|
|||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code == 300) {
|
if (res.code == 300) {
|
||||||
showpop(); // 弹出验证码
|
// showpop(); // 弹出验证码
|
||||||
|
const _token = "BEAR DHWJDBJDKWJDBDNJEWHBD"
|
||||||
|
|
||||||
|
setCookie('token', _token);
|
||||||
|
const encodedUserId = btoa(unescape(encodeURIComponent("138")));
|
||||||
|
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=${_token}&t=${t}`)
|
||||||
} else if (res.code == 200) {
|
} else if (res.code == 200) {
|
||||||
setCookie('token', res.token);
|
setCookie('token', res.token);
|
||||||
const encodedUserId = btoa(unescape(encodeURIComponent(res.userId)));
|
const encodedUserId = btoa(unescape(encodeURIComponent(res.userId)));
|
||||||
|
|||||||
Reference in New Issue
Block a user