This commit is contained in:
songliang 2023-07-03 11:24:02 +08:00
parent dca6395b5c
commit dca36bd438

View File

@ -1038,9 +1038,7 @@ class ShopController extends BaseAuthedController
$this->internalAddItem($propertyChgService, $itemMeta, $goods_count, 1);
$this->_rspOk();
} else {
error_log("buy normal 1, need_price = " . $need_price . " goods_num = " . $goods_num);
$price = $this->normalizeWeb3Price($goods_num * $need_price);
error_log("buy normal 2, price = " . $price);
$item_id = $row['goods_id'];
$item_count = $goods_num;
@ -1051,8 +1049,6 @@ class ShopController extends BaseAuthedController
$item_count
);
error_log("buy normal 3, response = " . json_encode($response));
BcOrder::upsert($response['trans_id'], array(
'item_id' => $item_id,
'item_num' => $item_count,
@ -1066,6 +1062,9 @@ class ShopController extends BaseAuthedController
$response['item_id'] = $item_id;
$response['item_num'] = $item_count;
error_log("buy normal, item_id = " . $item_id . " item_count = " . $item_count . " need_price = " . $need_price . " price = " . $price . " response = " . json_encode($response));
$this->_rspData(
array(
"block_chain" => $response