From a51eb723cfbdc9fd63314c19ce3f3acd316c3827 Mon Sep 17 00:00:00 2001 From: songliang Date: Sun, 25 Jun 2023 20:19:37 +0800 Subject: [PATCH 1/3] ... --- webapp/controller/ShopController.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 5cbf5db4..fd2f014a 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -1106,6 +1106,14 @@ class ShopController extends BaseAuthedController )), )); + error_log("buyGoodsDS start " + json_encode(array( + 'idx' => $idx, + 'grid' => $grid, + 'count' => $count, + 'block_chain' => $response, + ) + )); + $this->_rspData( array( 'idx' => $idx, From 962b801924c649ef763c478191140759d7d4c56c Mon Sep 17 00:00:00 2001 From: songliang Date: Sun, 25 Jun 2023 20:22:04 +0800 Subject: [PATCH 2/3] ... --- webapp/controller/ShopController.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index fd2f014a..fa860814 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -1041,6 +1041,8 @@ class ShopController extends BaseAuthedController return; } + error_log("buyGoodsDS start " . $address); + $idx = getReqVal('idx', 0); $grid = getReqVal('grid', 0); $count = getReqVal('count', 0); @@ -1113,7 +1115,7 @@ class ShopController extends BaseAuthedController 'block_chain' => $response, ) )); - + $this->_rspData( array( 'idx' => $idx, From 5b8d358a46ae88abf14fa7a3a7fd6bedd156411a Mon Sep 17 00:00:00 2001 From: songliang Date: Sun, 25 Jun 2023 20:23:47 +0800 Subject: [PATCH 3/3] ... --- webapp/controller/ShopController.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index fa860814..7c343de0 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -1042,7 +1042,7 @@ class ShopController extends BaseAuthedController } error_log("buyGoodsDS start " . $address); - + $idx = getReqVal('idx', 0); $grid = getReqVal('grid', 0); $count = getReqVal('count', 0); @@ -1095,6 +1095,13 @@ class ShopController extends BaseAuthedController $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,