This commit is contained in:
Putoo
2026-07-04 18:07:37 +08:00
parent ea32e7046e
commit fa00fc5d66
26 changed files with 871 additions and 69 deletions

View File

@@ -102,6 +102,11 @@ public class GoodsController : ControllerBase
if (goodsInfo.code == nameof(GoodsEnum.Code.Drug))
{
if (await UserStateTool.CheckUserFight(userId))
{
return PoAction.Message($"战斗状态下无法使用!");
}
var ck = await _goodsService.CheckUseDrug(userId, goodsId, goodsInfo.content);
if (!string.IsNullOrEmpty(ck))
{