From 1797f290c149913a0535936243df2b0290e40be2 Mon Sep 17 00:00:00 2001 From: songliang Date: Sun, 25 Jun 2023 20:31:00 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 29 ---------------------- 1 file changed, 29 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 280b8b7c..8af0fb77 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -1041,19 +1041,11 @@ class ShopController extends BaseAuthedController return; } - error_log("buyGoodsDS start " . $address); - $idx = getReqVal('idx', 0); $grid = getReqVal('grid', 0); $count = getReqVal('count', 0); $conn = $this->_getMysql(''); - error_log("buyGoodsDS start " . json_encode(array( - 'idx' => $idx, - 'grid' => $grid, - 'count' => $count, - ) - )); $row = SqlHelper::selectOne( $conn, @@ -1067,13 +1059,6 @@ class ShopController extends BaseAuthedController array('idx' => $idx) ); - error_log("buyGoodsDS start " . json_encode(array( - 'idx' => $idx, - 'grid' => $grid, - 'count' => $count, - ) - )); - if (!$row) { $this->_rspErr(2, 'idx is invalid'); return; @@ -1102,26 +1087,12 @@ class ShopController extends BaseAuthedController $item_id = $goods['goods_id']; $item_count = $goods['goods_num'] * $count; - error_log("buyGoodsDS start " . json_encode(array( - 'idx' => $idx, - 'grid' => $grid, - 'count' => $count, - ) - )); - $response = services\BlockChainService::gameItemMallBuy( Transaction::BUY_GOODS_ACTION_TYPE, $price, $item_id, $item_count ); - error_log("buyGoodsDS start " . json_encode(array( - 'idx' => $idx, - 'grid' => $grid, - 'count' => $count, - 'block_chain' => $response, - ) - )); BcOrder::upsert($response['trans_id'], array( 'item_id' => $item_id,