Commit 74c0f393 authored by liuyuzhen's avatar liuyuzhen

支付回调测试

parent 326d706f
...@@ -1167,7 +1167,7 @@ class OrderServiceModel extends \Business\AbstractModel ...@@ -1167,7 +1167,7 @@ class OrderServiceModel extends \Business\AbstractModel
$paySn = $data['paySn']; $paySn = $data['paySn'];
$oldOrderPay = $orderPayModel->find(array('pay_sn'=>$paySn)); $oldOrderPay = $orderPayModel->find(array('pay_sn'=>$paySn));
$orderStateArray = array_column($orderList,'order_state'); $orderStateArray = array_column($orderList,'order_state');
if(in_array(\Our\ApiConst::orderStateWaitPay,$orderStateArray)&&in_array($oldOrderPay['pay_type'],array(\Our\ApiConst::wxAppPayType,\Our\ApiConst::wxLitePayType))&&(isset($data['payFlag'])&&$data['payFlag']==\Our\ApiConst::one)){ if(in_array(\Our\ApiConst::orderStateWaitPay,$orderStateArray)&&in_array($oldOrderPay['pay_type'],array(\Our\ApiConst::wxAppPayType,\Our\ApiConst::wxLitePayType))&&((isset($data['payFlag'])&&$data['payFlag']==\Our\ApiConst::one)||!isset($data['payFlag']))){
if($oldOrderPay['pay_type']==\Our\ApiConst::wxLitePayType){ if($oldOrderPay['pay_type']==\Our\ApiConst::wxLitePayType){
$wxLitePay = \Payment\WxLitePay::getInstance(); $wxLitePay = \Payment\WxLitePay::getInstance();
$storeId = $orderList[0]['store_id']; $storeId = $orderList[0]['store_id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment