From dca36bd4380eb46afaf70783681dee7301cf459b Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 3 Jul 2023 11:24:02 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 5f5e7666..f975bc72 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -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