12121
This commit is contained in:
11
Service/Application.Domain/Tool/Base/UserStateTool.cs
Normal file
11
Service/Application.Domain/Tool/Base/UserStateTool.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Application.Domain;
|
||||
|
||||
public static class UserStateTool
|
||||
{
|
||||
public static async Task<bool> CheckUserFight(string userId)
|
||||
{
|
||||
var fightService = App.GetService<IGameFightService>();
|
||||
var myFight = await fightService.GetUserFight(userId);
|
||||
return myFight.Count > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user