From 0fcb61d9661bef22ac9cd2bad9f5445306eec29e Mon Sep 17 00:00:00 2001 From: songliang Date: Wed, 21 Jun 2023 11:41:39 +0800 Subject: [PATCH] ... --- .../callback/BuyShopGoodsCbService.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/webapp/services/callback/BuyShopGoodsCbService.php b/webapp/services/callback/BuyShopGoodsCbService.php index 37e31962..213a9b83 100644 --- a/webapp/services/callback/BuyShopGoodsCbService.php +++ b/webapp/services/callback/BuyShopGoodsCbService.php @@ -43,14 +43,17 @@ class BuyShopGoodsCbService return; } + $order_id = $order['order_id']; $address = $order['address']; - $ext_data = $order['ext_data']; - $goods_id = $order['item_id']; - $goods_num = $order['item_num']; + // $ext_data = $order['ext_data']; + $item_id = $order['item_id']; + $item_num = $order['item_num']; + + error_log("callback buynormal address: $address, order_id: $order_id, goods_id: $item_id, goods_num: $item_num"); $this->_addGoods($address, array( - 'goods_id' => $goods_id, - 'goods_num' => $goods_num, + 'goods_id' => $item_id, + 'goods_num' => $item_num, )); } @@ -69,6 +72,8 @@ class BuyShopGoodsCbService $grid = $ext_data['grid']; $count = $ext_data['count']; + error_log("callback buyDailySelection address: $address, order_id: $order_id, item_id: $item_id, item_num: $item_num, idx: $idx, grid: $grid, count: $count"); + $conn = $self->_getMysql($address); $sql = "SELECT count_$grid FROM t_shop_dailyselection WHERE idx = $idx"; $chk = $conn->execQuery($sql); @@ -76,7 +81,7 @@ class BuyShopGoodsCbService return; } if ($chk[0]['count_' . $grid] < $count) { - error_log("BuyShopGoodsCbService::_buyDailySelection() count not enough, address: $address, order_id: $order_id, idx: $idx, grid: $grid, count: $count"); + error_log("BuyShopGoodsCbService::_buyDailySelection() count not enough, address: $address, order_id: $order_id, item_id: $item_id, item_num: $item_num, idx: $idx, grid: $grid, count: $count"); return; } @@ -89,7 +94,7 @@ class BuyShopGoodsCbService 'goods_num' => $item_num, )); } else { - error_log("BuyShopGoodsCbService::_buyDailySelection() decDailySelectionItem failed, address: $address, order_id: $order_id, idx: $idx, grid: $grid, count: $count"); + error_log("BuyShopGoodsCbService::_buyDailySelection() decDailySelectionItem failed, address: $address, order_id: $order_id, item_id: $item_id, item_num: $item_num, idx: $idx, grid: $grid, count: $count"); } }