This commit is contained in:
Putoo
2026-06-26 18:32:15 +08:00
parent c374f27d16
commit aefd94ccd6
5 changed files with 21 additions and 6 deletions

View File

@@ -33,7 +33,15 @@ public class GoodsController : ControllerBase
string userId = StateHelper.userId;
int count = await _goodsService.GetUserGoodsCount(userId, goodsId);
int UseState = 0;
switch (goodsInfo.code)
{
case "Pack":
UseState = 1;
break;
}
return PoAction.Ok(new { goods = goodsInfo, count });
return PoAction.Ok(new { goods = goodsInfo, count, use = UseState });
}
}