diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index d3042f6d..60250e73 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -339,34 +339,6 @@ class ShopController extends BaseAuthedController $this->_rspData($order); } - private function _addGoods($address, $goods) - { - $itemService = new ShopAddItemService(); - $item_id = $goods['goods_id']; - $goods_num = $goods['goods_num']; - - $id = null; - if ($goods['id']) { - $id = $goods['id']; - } - - error_log('_addGoods ' . $address . ' item_id ' . $item_id . ' goods_num ' . $goods_num . ' id ' . $id); - $itemService->addItem($address, $item_id, $goods_num); - if ($id) { - ShopBuyRecord::addWithAddress($address, $id, $goods_num); - } - } - - private function _decGoods($address, $goods) - { - $itemService = new ShopAddItemService(); - $item_id = $goods['goods_id']; - $goods_num = $goods['goods_num']; - - error_log('_decGoods ' . $address . ' item_id ' . $item_id . ' goods_num ' . $goods_num); - $itemService->decItem($address, $item_id, $goods_num); - } - public function getPayMethods() { $token_type = getReqVal('token_type', 99);