Browse Source

取消易董ip白名单校验

xingzai 2 years ago
parent
commit
ff29fa8367
1 changed files with 6 additions and 6 deletions
  1. 6 6
      services/yidong/yidong.go

+ 6 - 6
services/yidong/yidong.go

@@ -37,11 +37,11 @@ func CheckAppidAndIp(appid, ip string) (err error) {
 		return
 	}
 	//如果有ip限制,那么就添加ip
-	if openApiUserInfo.Ip != "" {
-		if !strings.Contains(openApiUserInfo.Ip, ip) {
-			err = errors.New(fmt.Sprintf("无权限访问该接口,ip:%v,请联系管理员", ip))
-			return
-		}
-	}
+	//if openApiUserInfo.Ip != "" {
+	//	if !strings.Contains(openApiUserInfo.Ip, ip) {
+	//		err = errors.New(fmt.Sprintf("无权限访问该接口,ip:%v,请联系管理员", ip))
+	//		return
+	//	}
+	//}
 	return
 }