12121
This commit is contained in:
@@ -257,6 +257,15 @@ public class GiveController : ControllerBase
|
||||
{
|
||||
return PoAction.Message("玩家不存在!");
|
||||
}
|
||||
//此处判断赠送玩家的设置
|
||||
var roleConfig = await _userService.GetUserConfigInfo(fromInfo.userId);
|
||||
if (roleConfig.giveRole == 1)//判断是否为好友
|
||||
{
|
||||
if (await _relationService.CheckIsFriend(userId, fromInfo.userId)==false)
|
||||
{
|
||||
return PoAction.Message("玩家设置了拒绝陌生人赠送!");
|
||||
}
|
||||
}
|
||||
|
||||
if (type == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user