This commit is contained in:
songliang 2023-07-14 21:47:36 +08:00
parent 70c47b0f98
commit 2da3da8ad2

View File

@ -237,9 +237,20 @@ class ShopController extends BaseAuthedController
);
if ($chk) {
$lastId = $this->lastInsertId($conn);
$order_id = $this->genOrderId($lastId);
SqlHelper::update(
$conn,
't_shop_buy_order',
array(
'order_id' => $order_id,
),
array(
'idx' => $lastId,
)
);
$this->_rspData(
array(
'order_id' => $lastId,
'order_id' => $order_id,
)
);
} else {
@ -258,7 +269,7 @@ class ShopController extends BaseAuthedController
't_shop_buy_order',
array('status', 'id'),
array(
'idx' => $order_id,
'order_id' => $order_id,
)
);
if ($row) {