Merge branch 'refs/heads/feat-login-website'

This commit is contained in:
junleea 2025-05-17 11:38:14 +08:00
commit 8a3d0ee0ef
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ func GenerateJWTToken(userID int, userName string) (string, error) {
func DoGiteeCallBack(state *proto.ThirdPartyLoginState, code string) {
//获取Access Token
resp, err := worker.GetGiteeAccessTokenByCode(code, "https://pm.ljsea.top/tool/gitee_callback", proto.Config.GITEE_CLIENT_ID, proto.Config.GITEE_CLIENT_SECRET)
resp, err := worker.GetGiteeAccessTokenByCode(code, "https://pm.ljsea.top/tool/third_party_callback", proto.Config.GITEE_CLIENT_ID, proto.Config.GITEE_CLIENT_SECRET)
if err != nil {
log.Println("get gitee access token error:", err)
return