1212
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user