mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-18 05:32:00 +08:00
Compare commits
2 Commits
04d4189d17
...
04d000b072
Author | SHA1 | Date | |
---|---|---|---|
04d000b072 | |||
604c6bd683 |
@ -77,7 +77,7 @@ func Logout(c *gin.Context) {
|
||||
database.DB.Where("id = ?", cookie).Delete(&models.Session{})
|
||||
}
|
||||
|
||||
c.SetCookie("session", "", -1, "/", "aimodels-prices.q58.club", true, true)
|
||||
c.SetCookie("session", "", -1, "/", "ai-prices.sunai.net", true, true)
|
||||
c.JSON(http.StatusOK, gin.H{"message": "Logged out successfully"})
|
||||
}
|
||||
|
||||
@ -237,8 +237,8 @@ func AuthCallback(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 设置 cookie
|
||||
c.SetCookie("session", sessionID, int(24*time.Hour.Seconds()), "/", "aimodels-prices.q58.club", true, true)
|
||||
c.SetCookie("session", sessionID, int(24*time.Hour.Seconds()), "/", "ai-prices.sunai.net", true, true)
|
||||
|
||||
// 重定向到前端
|
||||
c.Redirect(http.StatusTemporaryRedirect, "https://aimodels-prices.q58.club")
|
||||
c.Redirect(http.StatusTemporaryRedirect, "https://ai-prices.sunai.net")
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
<el-footer height="60px">
|
||||
<div class="footer-content">
|
||||
<p>© 2025 Q58 AI模型价格 | <a href="https://www.q58.club/t/topic/277?u=wood" target="_blank">介绍帖子</a></p>
|
||||
<p>© 2025 SUNAI | <a href="https://www.sunai.net/t/topic/277" target="_blank">介绍帖子</a></p>
|
||||
</div>
|
||||
</el-footer>
|
||||
</el-container>
|
||||
|
@ -20,7 +20,7 @@
|
||||
</ul>
|
||||
|
||||
<h2>交流讨论</h2>
|
||||
<p>请在帖子下留言: <a href="https://www.q58.club/t/topic/277" target="_blank">https://www.q58.club/t/topic/277</a></p>
|
||||
<p>请在帖子下留言: <a href="https://www.sunai.net/t/topic/277" target="_blank">https://www.sunai.net/t/topic/277</a></p>
|
||||
|
||||
<h2>免责声明</h2>
|
||||
<p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user