Commit 0e2b6514 by wang

……

parent b56f85e5
Showing with 6 additions and 4 deletions
......@@ -105,16 +105,18 @@ func (this *openValidate) permissionValidate(interfaceName string) error{
//check验证
func (this *openValidate) Check(ctx *gin.Context,interfaceName string) error {
err:=this.ipValidate(ctx,this.business.token)
tokenStr:=this.business.token
//验证token的合法性
err:=this.exitValidate(tokenStr)
if(err!=nil){
return err
}
tokenStr:=this.business.token
//验证token的合法性
err=this.exitValidate(tokenStr)
err=this.ipValidate(ctx,this.business.token)
if(err!=nil){
return err
}
//接口权限验证
err=this.permissionValidate(interfaceName)
if(err!=nil){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment