@@ -73,7 +73,12 @@ func (a *AuthController) GetEtaToken(c *gin.Context) {
return
}
- key := fmt.Sprint(utils.CACHE_ETA_AUTH_CODE_PREFIX, req.AuthCode)
+ authCode := req.AuthCode
+ if authCode == `` {
+ authCode = req.Code
+ }
+
+ key := fmt.Sprint(utils.CACHE_ETA_AUTH_CODE_PREFIX, authCode)
adminName, e := global.Rc.RedisString(key)
if e != nil {
resp.FailMsg("获取失败", "获取失败, Redis Err: "+e.Error(), c)
@@ -1 +1 @@
-log/filelog/2024-01-23-00-00.log
+log/filelog/2024-01-30-00-00.log
@@ -7,4 +7,5 @@ type CreateAuthCodeReq struct {
type TokenLoginReq struct {
AuthCode string `json:"auth_code" form:"auth_code" binding:"required"`
+ Code string `json:"code" form:"code" binding:"required"`