From 6a31c180f8535ffe62793c419484183450e12d37 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 3 Jul 2023 10:58:48 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index d9380975..c0514169 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -145,6 +145,7 @@ class ShopController extends BaseAuthedController if (!empty($goods['free_type'])) { $count = $this->countFreeBuyTimes($goods['free_type'], $goods['id'], $goods['goods_id']); $goods['free_num'] = $goods['free_num'] - $count; + error_log('free_num:' . $goods['free_num']); } $address = $this->_getAddress(); @@ -1049,7 +1050,7 @@ class ShopController extends BaseAuthedController $item_id, $item_count ); - + error_log("buy normal 3, response = " . json_encode($response)); BcOrder::upsert($response['trans_id'], array(