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']); } }