|
@@ -569,6 +569,12 @@ func RefreshToken(request *protocol.RefreshTokenRequest) (rsp *protocol.RefreshT |
|
@@ -569,6 +569,12 @@ func RefreshToken(request *protocol.RefreshTokenRequest) (rsp *protocol.RefreshT |
569
|
err = protocol.NewErrWithMessage(4140, err)
|
569
|
err = protocol.NewErrWithMessage(4140, err)
|
570
|
return
|
570
|
return
|
571
|
}
|
571
|
}
|
|
|
572
|
+ //注入用户二次鉴权
|
|
|
573
|
+ if authMessage, hasAuth := agg.GetUserModuleAuth(userAuth.CurrentUserCompanyId); !hasAuth && userAuth.CurrentUserCompanyId > 0 {
|
|
|
574
|
+ log.Error(authMessage.Errno, authMessage.Errmsg)
|
|
|
575
|
+ err = protocol.NewCustomMessage(4141, authMessage.Errmsg) //账号不存在
|
|
|
576
|
+ return
|
|
|
577
|
+ }
|
572
|
//userAuth.AccessToken = uid.NewV1().StringNoDash()
|
578
|
//userAuth.AccessToken = uid.NewV1().StringNoDash()
|
573
|
userAuth.AccessToken = uid.NewV1().StringNoDash()
|
579
|
userAuth.AccessToken = uid.NewV1().StringNoDash()
|
574
|
userAuth.RefreshToken = uid.NewV1().StringNoDash()
|
580
|
userAuth.RefreshToken = uid.NewV1().StringNoDash()
|