This commit is contained in:
aozhiwei 2023-07-27 12:33:54 +08:00
parent 06032da236
commit e0f0f07987

View File

@ -339,34 +339,6 @@ class ShopController extends BaseAuthedController
$this->_rspData($order); $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() public function getPayMethods()
{ {
$token_type = getReqVal('token_type', 99); $token_type = getReqVal('token_type', 99);