diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 783f8128..eee4f615 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -554,6 +554,10 @@ class MarketController extends BaseAuthedController 'c_id' => $c_id, ) ); + if (!$r) { + $this->_rspErr(3, "sell failed"); + return; + } $lastId = $this->lastInsertId($conn); $order_id = $this->genOrderId($lastId); $test = SqlHelper::update($conn, 't_market_store', array('idx' => $lastId), array('order_id' => $order_id));