|
|
|
@ -229,7 +229,7 @@ func accessToken(context *gin.Context) {
|
|
|
|
|
context.JSON(http.StatusOK,
|
|
|
|
|
gin.H{
|
|
|
|
|
"access_token": accessToken, "expires_in": expiresIn, "refresh_token": refreshToken,
|
|
|
|
|
"token_type": tokenType, "identity_id": identityIdInt, "person_id": personId})
|
|
|
|
|
"token_type": tokenType, "identity_id": identityIdInt, "person_id": personId, "code": 200})
|
|
|
|
|
return
|
|
|
|
|
} else {
|
|
|
|
|
//刷新token
|
|
|
|
@ -272,7 +272,7 @@ func accessToken(context *gin.Context) {
|
|
|
|
|
context.JSON(http.StatusOK,
|
|
|
|
|
gin.H{
|
|
|
|
|
"access_token": accessToken, "expires_in": expiresIn, "refresh_token": refreshToken,
|
|
|
|
|
"token_type": tokenType, "identity_id": identityIdInt, "person_id": personIdInt})
|
|
|
|
|
"token_type": tokenType, "identity_id": identityIdInt, "person_id": personIdInt, "code": 200})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|