From 232457583e6387ea4c64452b09a1bdc89bbd7b7d Mon Sep 17 00:00:00 2001 From: songliang Date: Sat, 15 Jul 2023 13:41:04 +0800 Subject: [PATCH] ... --- webapp/controller/MarketController.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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));