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 技术老胡