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