修复模板
This commit is contained in:
@@ -28,8 +28,6 @@ func UserGoogleLoginHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
|
||||
resp := l.UserGoogleLogin(&req, userinfo)
|
||||
|
||||
if !basic.AfterLogic(w, r, resp, rl) {
|
||||
basic.NormalAfterLogic(w, r, resp)
|
||||
}
|
||||
basic.AfterLogic(w, r, resp, rl)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ func (l *UserGoogleLoginLogic) BeforeLogic(w http.ResponseWriter, r *http.Reques
|
||||
|
||||
func (l *UserGoogleLoginLogic) AfterLogic(w http.ResponseWriter, r *http.Request, resp *basic.Response) {
|
||||
log.Println(resp.Message)
|
||||
http.Redirect(w, r, "http://localhost:9900/?token="+resp.Message, http.StatusMovedPermanently)
|
||||
http.Redirect(w, r, "http://localhost:8080?token="+resp.Message, http.StatusMovedPermanently)
|
||||
// log.Println(r, w)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user