|
@@ -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
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
server, err := l.svcCtx.DB.Server.Get(l.ctx, *req.ServerId)
|