Skip to content

Commit

Permalink
add login state
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty committed Oct 7, 2024
1 parent 9081809 commit 6bd3a5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions prod/html/gptbot.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<script src="./oauth.js"></script>
<script>
(async () => {
/*
//*
if (!(await isLogin())) {
parent.Main.popup(
"還差一步!",
Expand All @@ -51,15 +51,16 @@
return;
}
//*/
/*
//*
const user = await getUser();
console.log(user);
window.user = user;
console.log(">>>", user);
setCookies("userId", user?.id);

if (!localStorage.getItem("isReadTerm")) {
parent.Main.popup(
"歡迎加入!",
"您可以免費體驗直到 2023/07/31",
"您可以免費體驗直到 2024/12/31",
"info",
"知道了",
).then(() => {
Expand Down

0 comments on commit 6bd3a5d

Please sign in to comment.