From a95cebf7d6659ba2e4986089dd88a67c89be4451 Mon Sep 17 00:00:00 2001 From: songliang Date: Tue, 20 Jun 2023 16:42:44 +0800 Subject: [PATCH] ... --- webapp/services/callback/BuyShopGoodsCbService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/services/callback/BuyShopGoodsCbService.php b/webapp/services/callback/BuyShopGoodsCbService.php index 289d8b1b..0b435797 100644 --- a/webapp/services/callback/BuyShopGoodsCbService.php +++ b/webapp/services/callback/BuyShopGoodsCbService.php @@ -4,11 +4,13 @@ namespace services; require_once('mt/Dailyselection.php'); +require_once('ShopAddItemService.php'); define('V_ORDER_TYPE_BUY_SHOP_GOODS', 1); use phpcommon\SqlHelper; use mt\Dailyselection; +use mt\Shop; class BuyShopGoodsCbService { @@ -91,6 +93,7 @@ class BuyShopGoodsCbService private function _addGoods($address, $goods) { - error_log("BuyShopGoodsCbService::_addGoods() address: $address, goods: " . json_encode($goods)); + $itemService = new ShopAddItemService(); + $itemService->addItem($address, $goods['goods_id'], $goods['goods_num']); } }