This commit is contained in:
aozhiwei 2022-11-01 19:47:40 +08:00
parent e6127558c9
commit 706c81fcaf

View File

@ -99,7 +99,6 @@ class ShopController extends BaseAuthedController {
switch($token_type) {
case ShopController::TOKEN_TYPE_CEG:
echo "token type: {$token_type} {$need_price} {$discount} {$this->_getAccountId()}";
$costItems = $this->makeCostItems($costItemId, $goods_num*$need_price);
$lackItem = null;
if (!$this->_hasEnoughItems($costItems, $lackItem)) {
@ -158,16 +157,6 @@ class ShopController extends BaseAuthedController {
default:
$this->_rspErr(1, "token_type is unsupport, {$token_type}");
}
$this->_rspData(array(
'id' => $id,
'token_type' => $token_type,
'num' => $goods_num,
'row' => $row ? $row : array(),
'check_token_type' => in_array($token_type, $check_token_type),
'token_pos' => $token_pos,
));
}
private function getCostItemIdByTokenType($token_type)