|
@@ -51,7 +51,7 @@ class pay_helper
|
|
|
}
|
|
|
|
|
|
$logic_payment = Logic('payment');
|
|
|
- $payinfo = $logic_payment->getRealOrderInfo($pay_sn, $_SESSION['member_id']);
|
|
|
+ $payinfo = $logic_payment->getRealOrderInfo($pay_sn, $_SESSION['member_id'],true);
|
|
|
if (intval($payinfo['data']['api_pay_state']) != 0) {
|
|
|
$err = array('code' => errcode::ErrPayment, 'msg' => $payinfo['msg']);
|
|
|
return false;
|
|
@@ -111,7 +111,7 @@ class pay_helper
|
|
|
public static function confirm($pay_sn,&$err,&$amount,&$fcode_state)
|
|
|
{
|
|
|
$logic_payment = Logic('payment');
|
|
|
- $result = $logic_payment->getRealOrderInfo($pay_sn);
|
|
|
+ $result = $logic_payment->getRealOrderInfo($pay_sn,null,true);
|
|
|
if(empty($result)) {
|
|
|
$err = ['code'=> errcode::ErrOrder,'msg' => '无此订单.'];
|
|
|
return false;
|
|
@@ -131,7 +131,7 @@ class pay_helper
|
|
|
public static function check_fee($pay_sn,$total_fee,&$need_pay)
|
|
|
{
|
|
|
$logic_payment = Logic('payment');
|
|
|
- $result = $logic_payment->getRealOrderInfo($pay_sn);
|
|
|
+ $result = $logic_payment->getRealOrderInfo($pay_sn,null,true);
|
|
|
|
|
|
if (intval($result['data']['api_pay_state']) != 0) {
|
|
|
return false;
|
|
@@ -146,7 +146,7 @@ class pay_helper
|
|
|
static public function paied($pay_sn)
|
|
|
{
|
|
|
$logic_payment = Logic('payment');
|
|
|
- $result = $logic_payment->getRealOrderInfo($pay_sn);
|
|
|
+ $result = $logic_payment->getRealOrderInfo($pay_sn,null,true);
|
|
|
if (intval($result['data']['api_pay_state']) != 0) {
|
|
|
return true;
|
|
|
}
|
|
@@ -225,12 +225,12 @@ class pay_helper
|
|
|
public function OnSuccess($pay_sn)
|
|
|
{
|
|
|
$logic_payment = Logic('payment');
|
|
|
- $result = $logic_payment->getRealOrderInfo($pay_sn);
|
|
|
+ $result = $logic_payment->getRealOrderInfo($pay_sn,null,true);
|
|
|
|
|
|
if($result['state'] != true) {
|
|
|
return false;
|
|
|
} else {
|
|
|
- account_helper::onPaySuccess($pay_sn);
|
|
|
+ QueueClient::push('onPaySuccess',['pay_sn' => $pay_sn]);
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
@@ -243,7 +243,7 @@ class pay_helper
|
|
|
if (!empty($tmp[1])) {
|
|
|
$order_type = $tmp[1];
|
|
|
} else {
|
|
|
- $order_pay_info = Model('order')->getOrderPayInfo(array('pay_sn' => $paysn));
|
|
|
+ $order_pay_info = Model('order')->getOrderPayInfo(array('pay_sn' => $paysn),true);
|
|
|
if (empty($order_pay_info)) {
|
|
|
$order_type = 'v';
|
|
|
} else {
|
|
@@ -253,7 +253,7 @@ class pay_helper
|
|
|
|
|
|
if ($order_type == 'r')
|
|
|
{
|
|
|
- $result = $logic_payment->getRealOrderInfo($paysn);
|
|
|
+ $result = $logic_payment->getRealOrderInfo($paysn,null,true);
|
|
|
if (intval($result['data']['api_pay_state'])) {
|
|
|
return array('state' => true);
|
|
|
}
|
|
@@ -262,7 +262,7 @@ class pay_helper
|
|
|
}
|
|
|
elseif ($order_type == 'v')
|
|
|
{
|
|
|
- $result = $logic_payment->getVrOrderInfo($paysn, null, true);
|
|
|
+ $result = $logic_payment->getVrOrderInfo($paysn);
|
|
|
if ($result['data']['order_state'] != ORDER_STATE_NEW) {
|
|
|
return array('state' => true);
|
|
|
}
|