From a59a22fe82912cc701fd75ba76ad6a1cbc1df992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=80=E6=9C=AF=E8=80=81=E8=83=A1?= <1094551889@qq.com> Date: Tue, 4 Mar 2025 17:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E6=AC=A1=E5=85=83?= =?UTF-8?q?=E5=8F=91=E5=8D=A1=E9=80=9A=E7=9F=A5=E5=9B=9E=E8=B0=83=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/ConsoleController.php | 2 +- app/controller/PayController.php | 4 ++++ app/controller/api/OrderController.php | 4 ++++ config/extend/payplugin.php | 12 ++++++++++++ view/console/index.html | 2 +- 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/controller/ConsoleController.php b/app/controller/ConsoleController.php index 29bc749..b9edc01 100644 --- a/app/controller/ConsoleController.php +++ b/app/controller/ConsoleController.php @@ -13,7 +13,7 @@ class ConsoleController extends BaseController // 后台主页 public function index() { - View::assign('version', 'v1'); + View::assign('version', 'V1'); return View::fetch(); } // 管理菜单 diff --git a/app/controller/PayController.php b/app/controller/PayController.php index 8012fa6..1344cdc 100644 --- a/app/controller/PayController.php +++ b/app/controller/PayController.php @@ -320,6 +320,10 @@ class PayController // 添加扩展参数 // $notify = array_merge($notify, unserialize($param->param)); $notify['param'] = unserialize($param->param); + // 删除空值 + foreach ($notify as $key => $val) { + if ($val === '') unset($notify[$key]); + } return $notify; } // 请求外部资源 diff --git a/app/controller/api/OrderController.php b/app/controller/api/OrderController.php index 26aee8f..80b8ea7 100644 --- a/app/controller/api/OrderController.php +++ b/app/controller/api/OrderController.php @@ -162,6 +162,10 @@ class OrderController extends BaseController // 添加扩展参数 // $notify = array_merge($notify, unserialize($param->param)); $notify['param'] = unserialize($param->param); + // 删除空值 + foreach ($notify as $key => $val) { + if ($val === '') unset($notify[$key]); + } return $notify; } // 请求外部资源 diff --git a/config/extend/payplugin.php b/config/extend/payplugin.php index add4051..5c9e738 100644 --- a/config/extend/payplugin.php +++ b/config/extend/payplugin.php @@ -40,4 +40,16 @@ return array ( 'version' => '1.0', 'state' => 1, ), + 3 => + array ( + 'platform' => 'alipayb', + 'name' => '支付宝账单', + 'class_name' => 'AliPayb', + 'price' => NULL, + 'describe' => '支付宝账单查询回调,免挂机,稳定不掉线', + 'website' => 'https://open.alipay.com', + 'helplink' => 'https://f0bmwzqjtq2.feishu.cn/docx/HBVrdrsACo36bzxUCSPcjOBNnyb', + 'version' => '1.0', + 'state' => 1, + ), ); diff --git a/view/console/index.html b/view/console/index.html index 4d07cec..703aea3 100644 --- a/view/console/index.html +++ b/view/console/index.html @@ -82,7 +82,7 @@
版本号:
by techhaha
版本号:
by 技术老胡