From 31b048a692344b1db8aeb7cdfc5bcb5b5eae53f6 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Fri, 8 Sep 2023 08:04:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.php | 6 +++--- src/WoUnicomWeb.php | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/config/config.php b/config/config.php index 69231f4..776c9e2 100644 --- a/config/config.php +++ b/config/config.php @@ -11,11 +11,11 @@ return [ 'uri' => [ 'unicom' => [ //下单 - 'order' => 'https://www.unicompayment.com/wappay3.0/httpservice/wapPayPageAction.do?reqcharset=UTF-8', + 'order' => 'https://epay.10010.com/wappay3.0/httpservice/wapPayPageAction.do?reqcharset=UTF-8', //查询 - 'query' => 'https://www.unicompayment.com/CashierWeb/query/order.htm?reqCharSet=UTF-8', + 'query' => 'https://epay.10010.com/CashierWeb/query/order.htm?reqCharSet=UTF-8', //单笔退款 - 'refund' => 'https://www.unicompayment.com/CashierWeb/trade/singleRefund.htm?reqCharSet=UTF-8', + 'refund' => 'https://epay.10010.com/CashierWeb/trade/singleRefund.htm?reqCharSet=UTF-8', ], 'ysd' => [ 'order' => env('APP_URL', 'https://card.ysd-bs.com'), diff --git a/src/WoUnicomWeb.php b/src/WoUnicomWeb.php index a739b67..dab2b04 100644 --- a/src/WoUnicomWeb.php +++ b/src/WoUnicomWeb.php @@ -96,7 +96,6 @@ class WoUnicomWeb */ public function callback($inputs) { - info($inputs); if (empty($inputs)) { return '缺少必要参数'; } @@ -136,7 +135,7 @@ class WoUnicomWeb $payment->state = 'SUCCESS'; $payment->out_trade_no = $data['payfloodid']; - $payment->type = 'UNICOM'; + $payment->type = Payment::TYPE_UNICOM_WEB; $payment->paid_at = Carbon::now(); $payment->save(); $order->paid(); @@ -152,7 +151,7 @@ class WoUnicomWeb $payment->state = Payment::STATE_SUCCESS; $payment->out_trade_no = $data['payfloodid']; - $payment->type = Payment::TYPT_UNICOM_WEB; + $payment->type = Payment::TYPE_UNICOM_WEB; $payment->paid_at = Carbon::now(); $payment->save(); $order->paid(); @@ -168,7 +167,7 @@ class WoUnicomWeb $payment->state = 'SUCCESS'; $payment->out_trade_no = $data['payfloodid']; - $payment->type = 'UNICOM'; + $payment->type = Payment::TYPE_UNICOM_WEB; $payment->paid_at = Carbon::now(); $payment->save(); $order->paid(); @@ -184,7 +183,7 @@ class WoUnicomWeb $payment->state = 'SUCCESS'; $payment->out_trade_no = $data['payfloodid']; - $payment->type = 'UNICOM'; + $payment->type = Payment::TYPE_UNICOM_WEB; $payment->paid_at = Carbon::now(); $payment->save(); $order->paid();