...
This commit is contained in:
parent
70c47b0f98
commit
2da3da8ad2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user