This commit is contained in:
songliang 2023-07-25 15:43:13 +08:00
parent 947d21b308
commit 332d8d6e09

View File

@ -1266,6 +1266,9 @@ class ShopController extends BaseAuthedController
$costItemId = $this->getCostItemIdByTokenType($token_type);
$costItems = $this->makeCostItems($costItemId, $count * $need_price);
error_log("buyGoodsDS costItems " . json_encode($costItems));
$lackItem = null;
if (!$this->_hasEnoughItems($costItems, $lackItem)) {
$this->_rspErr(2, $this->_getLackItemErrMsg($lackItem));