1
This commit is contained in:
parent
a50d975cc2
commit
b9a1d30e00
@ -23,20 +23,23 @@ error_log("GameItemMallBuyOk1:process");
|
|||||||
'order_id' => $orderId
|
'order_id' => $orderId
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
error_log("GameItemMallBuyOk2:select order");
|
||||||
//1:已发货 2:订单不存在
|
//1:已发货 2:订单不存在
|
||||||
if (!$orderDb){
|
if (!$orderDb){
|
||||||
|
error_log("GameItemMallBuyOk2-1:订单不存在");
|
||||||
return json_encode(array(
|
return json_encode(array(
|
||||||
'errcode' => 2,
|
'errcode' => 2,
|
||||||
'errmsg' => "Order does not exist",
|
'errmsg' => "Order does not exist",
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if ($orderDb['status'] == 1){
|
if ($orderDb['status'] == 1){
|
||||||
|
error_log("GameItemMallBuyOk2-2:订单已发货");
|
||||||
return json_encode(array(
|
return json_encode(array(
|
||||||
'errcode' => 1,
|
'errcode' => 1,
|
||||||
'errmsg' => "Order shipped",
|
'errmsg' => "Order shipped",
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
error_log("GameItemMallBuyOk2-3:updateOrderState begin");
|
||||||
// 修改订单状态
|
// 修改订单状态
|
||||||
$this->_updateOrderState($address,$orderId);
|
$this->_updateOrderState($address,$orderId);
|
||||||
|
|
||||||
@ -62,7 +65,7 @@ error_log("GameItemMallBuyOk1:process");
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function _updateOrderState($address,$transId){
|
private function _updateOrderState($address,$transId){
|
||||||
error_log("GameItemMallBuyOk2:updateOrderState");
|
error_log("GameItemMallBuyOk2-4:updateOrderState");
|
||||||
SqlHelper::update
|
SqlHelper::update
|
||||||
(myself()->_getMysql($address),
|
(myself()->_getMysql($address),
|
||||||
't_bc_order',
|
't_bc_order',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user