Browse Source

fix:hide some code

jimmyyem 4 months ago
parent
commit
30b808aca2
1 changed files with 5 additions and 5 deletions
  1. 5 5
      internal/logic/Wx/check_wx_logic.go

+ 5 - 5
internal/logic/Wx/check_wx_logic.go

@@ -31,11 +31,11 @@ func NewCheckWxLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CheckWxLo
 }
 
 func (l *CheckWxLogic) CheckWx(req *types.WxInfo) (resp *types.BaseMsgResp, err error) {
-	isAdmin := l.ctx.Value("isAdmin").(bool)
-	if !isAdmin {
-		l.Error("没有权限,请联系管理员", nil)
-		return nil, nil
-	}
+	//isAdmin := l.ctx.Value("isAdmin").(bool)
+	//if !isAdmin {
+	//	l.Error("没有权限,请联系管理员", nil)
+	//	return nil, nil
+	//}
 
 	// 获取服务器信息
 	server, err := l.svcCtx.DB.Server.Get(l.ctx, *req.ServerId)