From 4f2a0869a72abcda9c3f84159a1d19860dbf73bb Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 20 May 2019 15:35:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fixed=20=E6=8B=BC=E5=9B=A2=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=90=8D=E4=B8=AD=E6=96=87=E5=AD=97=E7=AC=A6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/trippestOrderSync/controllers/order_finance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webht/third_party/trippestOrderSync/controllers/order_finance.php b/webht/third_party/trippestOrderSync/controllers/order_finance.php index e4c06133..0b37e211 100644 --- a/webht/third_party/trippestOrderSync/controllers/order_finance.php +++ b/webht/third_party/trippestOrderSync/controllers/order_finance.php @@ -190,7 +190,7 @@ class Order_finance extends CI_Controller { $cost_c = array(); $cost_c['ordernumber'] = $cost->coli_id; $cost_c['tourCode'] = mb_substr(implode(',', array_unique(array_map(function($ele){ return $ele->real_code; }, $cost->order_cost))), 0, 50); - $cost_c['tourname'] = substr($cost->pag_name, 0, 200) ; + $cost_c['tourname'] = mb_substr($cost->pag_name, 0, 200) ; $cost_c['tourtime'] = $cost->startdate; $cost_c['tourRSd'] = $cost->order_cost[0]->adult_num; $cost_c['tourRSx'] = $cost->order_cost[0]->child_num; From a2d7979498cbd02dc76481dd2dc258778d492f80 Mon Sep 17 00:00:00 2001 From: lyt Date: Tue, 21 May 2019 09:55:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?APP=E7=BB=84=E7=9A=84=E5=90=8E=E7=BC=80A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 196519f2..b4dfbc2c 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -655,6 +655,8 @@ class Index extends CI_Controller { $ordertype = 'T'; } elseif (substr($ordertype_temp, 0, 1) == 'B') { $ordertype = 'B'; + } elseif (substr($ordertype_temp, 0, 1) == 'A') { + $ordertype = 'B'; } } // 2018.05.28 for Trippest, tourMaster的订单号是01开头 From 74ba1e15187bb94ade427bdb19830d6b6833a878 Mon Sep 17 00:00:00 2001 From: lyt Date: Tue, 21 May 2019 14:01:48 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=80=80=E6=AC=BE=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=A1=A8=E5=A2=9E=E5=8A=A0=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/pay/controllers/PaymentService.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/webht/third_party/pay/controllers/PaymentService.php b/webht/third_party/pay/controllers/PaymentService.php index aecb8887..01bf18c2 100644 --- a/webht/third_party/pay/controllers/PaymentService.php +++ b/webht/third_party/pay/controllers/PaymentService.php @@ -413,6 +413,7 @@ log_message('error','send_notify begin ----'); $objPHPExcel->getActiveSheet()->getColumnDimension('H')->setWidth(30); // 邮箱 $objPHPExcel->getActiveSheet()->getColumnDimension('I')->setWidth(20); // 交易号 $objPHPExcel->getActiveSheet()->getColumnDimension('J')->setWidth(20); // 时间 + $objPHPExcel->getActiveSheet()->getColumnDimension('K')->setWidth(20); // 交易平台 // 对齐 $objPHPExcel->getActiveSheet()->getStyle('D')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_RIGHT); $objPHPExcel->getActiveSheet()->getStyle('F')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_RIGHT); @@ -427,7 +428,9 @@ log_message('error','send_notify begin ----'); ->SetCellValue('G1', '付款人') ->SetCellValue('H1', '邮箱') ->SetCellValue('I1', '交易号') - ->SetCellValue('J1', '时间'); + ->SetCellValue('J1', '时间') + ->SetCellValue('K1', '交易平台') + ; $currency_sum = array(); bcscale(2); $rowCount = 2; @@ -442,7 +445,9 @@ log_message('error','send_notify begin ----'); ->SetCellValue('G'.$rowCount, $row['payer']) ->SetCellValue('H'.$rowCount, $row['payer_email']) ->setCellValueExplicit('I'.$rowCount, $row['transaction_id'], PHPExcel_Cell_DataType::TYPE_STRING) - ->SetCellValue('J'.$rowCount, $row['payment_date']); + ->SetCellValue('J'.$rowCount, $row['payment_date']) + ->SetCellValue('K'.$rowCount, $row['payment_type']) + ; $rowCount++; } $time_set = date('Y-m-d_H_i_s');