From 4c8f3fb867b8364af186a8a3c283405804508b41 Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 1 Jul 2019 10:05:40 +0800 Subject: [PATCH] =?UTF-8?q?Alipay=20=E8=B4=A6=E5=8D=95=E4=B8=AD=E7=9A=84AP?= =?UTF-8?q?P=E4=BA=A4=E6=98=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pay/controllers/AlipayTradeService.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webht/third_party/pay/controllers/AlipayTradeService.php b/webht/third_party/pay/controllers/AlipayTradeService.php index ebe92174..e206c23d 100644 --- a/webht/third_party/pay/controllers/AlipayTradeService.php +++ b/webht/third_party/pay/controllers/AlipayTradeService.php @@ -357,6 +357,12 @@ class AlipayTradeService extends CI_Controller continue; } + //检测是否是APP订单 + if ((strpos($item->ALI_memo, 'China Train Booking') !== false) || (strpos($item->ALI_memo, 'ChinaTrainBooking') !== false)) { + $item->ALI_orderId .= "_A"; + // $this->Alipay_note_model->update_send($item->ALI_dealId, 'send'); + } + //退款状态默认为已经处理,陆燕在退款前手动通知外联了,系统跳过处理 if ($item->ALI_payType == 'refund') { $this->send_refund($item); @@ -370,12 +376,6 @@ class AlipayTradeService extends CI_Controller continue; } - //检测是否是APP订单,默认不处理 - // if ((strpos($item->pn_memo, 'China Train Booking') !== false) || (strpos($item->pn_memo, 'ChinaTrainBooking') !== false)) { //APP自动出票的订单不需要处理 - // $this->Alipay_note_model->update_send($item->ALI_dealId, 'send'); - // continue; - // } - //根据note信息找到订单号 $orderid_info = analysis_orderid($item->ALI_orderId); @@ -399,7 +399,7 @@ class AlipayTradeService extends CI_Controller $this->Alipay_note_model->set_invoice($item->ALI_dealId, $orderid_info->orderid . '_' . $orderid_info->ordertype); //检测是否是APP订单,默认不处理 - if ($orderid_info->ordertype == 'A') { //APP自动出票的订单不需要处理 + if ($orderid_info->ordertype == 'A' && $item->ALI_payType == 'pay') { //APP自动出票的订单不需要处理 $this->Alipay_note_model->update_send($item->ALI_dealId, 'send'); continue; }