作者 tangxuhui

代码注释

@@ -134,13 +134,16 @@ func (svr AuthService) AuthLoginQrcode(queryParam *query.QrcodeLoginStatusQuery) @@ -134,13 +134,16 @@ func (svr AuthService) AuthLoginQrcode(queryParam *query.QrcodeLoginStatusQuery)
134 CompanyId: qrmsgCache.CompanyId, 134 CompanyId: qrmsgCache.CompanyId,
135 OrgId: qrmsgCache.OrgId, 135 OrgId: qrmsgCache.OrgId,
136 } 136 }
137 - accessToken, err := loginToken.GenerateAccessToken() 137 + // accessToken, err := loginToken.GenerateAccessToken()
  138 + // if err != nil {
  139 + // return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
  140 + // }
  141 + qrCache.Remove(qrmsgCache.Id)
  142 + // _ = accessToken
  143 + result, err := svr.getToken(loginToken)
138 if err != nil { 144 if err != nil {
139 return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) 145 return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
140 } 146 }
141 - qrCache.Remove(qrmsgCache.Id)  
142 - _ = accessToken  
143 - result, err := svr.getToken(loginToken)  
144 data := map[string]interface{}{ 147 data := map[string]interface{}{
145 "isLogin": qrmsgCache.IsLogin, 148 "isLogin": qrmsgCache.IsLogin,
146 "access": result["token"], 149 "access": result["token"],