|
@@ -228,9 +228,10 @@ namespace GFGGame
|
|
|
SetLeftButton(true, "否").
|
|
|
SetRightButton(true, "是", async (object param) =>
|
|
|
{
|
|
|
- if (ItemDataManager.GetItemNum(cost[0]) < cost[1])
|
|
|
+ if (!ItemUtil.CheckItemEnough(cost[0], cost[1]))
|
|
|
{
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("消耗不足");
|
|
|
+ long has = ItemDataManager.GetItemNum(cost[0]);
|
|
|
+ ItemUtil.BuyCurrency(cost[0], cost[1] - has);
|
|
|
return;
|
|
|
}
|
|
|
result = await DailyWelfareSProxy.ReqReSign(day);
|