...
This commit is contained in:
parent
70c47b0f98
commit
2da3da8ad2
@ -237,9 +237,20 @@ class ShopController extends BaseAuthedController
|
|||||||
);
|
);
|
||||||
if ($chk) {
|
if ($chk) {
|
||||||
$lastId = $this->lastInsertId($conn);
|
$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(
|
$this->_rspData(
|
||||||
array(
|
array(
|
||||||
'order_id' => $lastId,
|
'order_id' => $order_id,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@ -258,7 +269,7 @@ class ShopController extends BaseAuthedController
|
|||||||
't_shop_buy_order',
|
't_shop_buy_order',
|
||||||
array('status', 'id'),
|
array('status', 'id'),
|
||||||
array(
|
array(
|
||||||
'idx' => $order_id,
|
'order_id' => $order_id,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if ($row) {
|
if ($row) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user