diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 667c0050..50136932 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -388,10 +388,15 @@ class ShopController extends BaseAuthedController default: error_log("buyGoodsDirect--- " . $order_id . " --- " . $status); $this->_rspErr(1, "status error, status: {$status}"); - break; + return; } - SqlHelper::update($conn, 't_shop_buy_order', array('idx' => $order_id), array('status' => $buyStatus)); + SqlHelper::update($conn, 't_shop_buy_order', array('order_id' => $order_id), array('status' => $buyStatus)); + + if ($buyStatus == 2) { + $this->_rspErr(2, "buyStatus error, buyStatus: {$buyStatus}"); + return; + } // 以下是看商品表中是否配置了充值额外奖励 $goods = mt\ShopGoods::get($id);