1233
This commit is contained in:
@@ -115,6 +115,12 @@ public class MessageController : ControllerBase
|
||||
string userId = StateHelper.userId;
|
||||
int areaId = StateHelper.areaId;
|
||||
|
||||
var msgRole = await _userService.GetUserConfigInfo(userId, nameof(UserEnum.ConfigCode.MsgRole));
|
||||
if (msgRole != 1)
|
||||
{
|
||||
return PoAction.Message("消息权限已被封禁!");
|
||||
}
|
||||
|
||||
var toUser = await _userService.GetUserInfoByUserNo(parms.no.ToString());
|
||||
if (toUser == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user