一些逻辑更新
@ -20,7 +20,14 @@ class ConsoleController extends BaseController
|
|||||||
{
|
{
|
||||||
// 加载菜单配置
|
// 加载菜单配置
|
||||||
$menu = \think\facade\Config::load("extendconfig/menu", 'extendconfig');
|
$menu = \think\facade\Config::load("extendconfig/menu", 'extendconfig');
|
||||||
return \json($menu);
|
return json($menu);
|
||||||
|
}
|
||||||
|
// 管理菜单
|
||||||
|
public function message()
|
||||||
|
{
|
||||||
|
// 加载菜单配置
|
||||||
|
$message = \Plugin::getNotifyMessage();
|
||||||
|
return json($message);
|
||||||
}
|
}
|
||||||
// 首页仪表盘
|
// 首页仪表盘
|
||||||
public function console()
|
public function console()
|
||||||
|
@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use think\facade\Log;
|
|
||||||
|
|
||||||
class Plugin
|
class Plugin
|
||||||
{
|
{
|
||||||
|
private static $siteUrl = 'https://api.zhaidashi.cn';
|
||||||
// 获取全部插件(含本地)
|
// 获取全部插件(含本地)
|
||||||
public static function getAllPlugins(array $local_plugin = []): array
|
public static function getAllPlugins(array $local_plugin = []): array
|
||||||
{
|
{
|
||||||
@ -50,167 +49,14 @@ class Plugin
|
|||||||
// 获取平台所有支持插件
|
// 获取平台所有支持插件
|
||||||
public static function getAllPlugin(): array
|
public static function getAllPlugin(): array
|
||||||
{
|
{
|
||||||
$app_plugin = array(
|
$app_plugin = self::getHttpResponse(self::$siteUrl . '/Mpay/getPlugins');
|
||||||
0 =>
|
return json_decode($app_plugin, true);
|
||||||
array(
|
}
|
||||||
'platform' => 'wxpay',
|
// 获取通知消息
|
||||||
'name' => '微信支付',
|
public static function getNotifyMessage(): array
|
||||||
'class_name' => 'WxPay',
|
{
|
||||||
'price' => '0.00',
|
$message = self::getHttpResponse(self::$siteUrl . '/Mpay/message');
|
||||||
'describe' => '支持微信个人收款码、赞赏码、经营码、商家码收款,监听回调',
|
return json_decode($message, true);
|
||||||
'website' => 'https://weixin.qq.com/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(),
|
|
||||||
),
|
|
||||||
1 =>
|
|
||||||
array(
|
|
||||||
'platform' => 'alipay',
|
|
||||||
'name' => '支付宝',
|
|
||||||
'class_name' => 'AliPay',
|
|
||||||
'price' => '0.00',
|
|
||||||
'describe' => '支持支付宝个人收款码、经营码收款,监听回调',
|
|
||||||
'website' => 'https://www.alipay.com/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(),
|
|
||||||
),
|
|
||||||
2 =>
|
|
||||||
array(
|
|
||||||
'platform' => 'sqbpay',
|
|
||||||
'name' => '收钱吧',
|
|
||||||
'class_name' => 'ShouQianBa',
|
|
||||||
'price' => '49.00',
|
|
||||||
'describe' => '主流移动支付全能收 信用卡,花呗都能用,生意帮手收钱吧,移动收款就用它!',
|
|
||||||
'website' => 'https://www.shouqianba.com/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(
|
|
||||||
'date_end' => NULL,
|
|
||||||
'date_start' => NULL,
|
|
||||||
'page' => 1,
|
|
||||||
'page_size' => 10,
|
|
||||||
'upayQueryType' => 0,
|
|
||||||
'status' => '2000',
|
|
||||||
'store_sn' => '',
|
|
||||||
'type' => '30',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
3 =>
|
|
||||||
array(
|
|
||||||
'platform' => 'storepay',
|
|
||||||
'name' => '数字门店',
|
|
||||||
'class_name' => 'ZhiHuiJingYing',
|
|
||||||
'price' => '49.00',
|
|
||||||
'describe' => '数字门店',
|
|
||||||
'website' => 'https://store.zhihuijingyingba.com/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(
|
|
||||||
'pageNo' => 1,
|
|
||||||
'pageSize' => 10,
|
|
||||||
'payClient' => 4,
|
|
||||||
'status' => 2,
|
|
||||||
'_t' => NULL,
|
|
||||||
'createTime_begin' => NULL,
|
|
||||||
'createTime_end' => NULL,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
4 =>
|
|
||||||
array(
|
|
||||||
'platform' => 'ysepay',
|
|
||||||
'name' => '小Y经营',
|
|
||||||
'class_name' => 'YsePay',
|
|
||||||
'price' => '59.00',
|
|
||||||
'describe' => '为商户和消费者提供安全、便捷、高效的支付产品与服务助力商户提升运营效率,实现数字化运营',
|
|
||||||
'website' => 'https://xym.ysepay.com/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(
|
|
||||||
'storeNo' => '',
|
|
||||||
'bizType' => 3,
|
|
||||||
'payType' => '',
|
|
||||||
'orderStatus' => 3,
|
|
||||||
'trmNo' => '',
|
|
||||||
'operatorUser' => '',
|
|
||||||
'codeBoardCode' => '',
|
|
||||||
'pageSize' => 10,
|
|
||||||
'pageNo' => 1,
|
|
||||||
'orderNo' => '',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
5 =>
|
|
||||||
array(
|
|
||||||
'platform' => 'mqpay',
|
|
||||||
'name' => '码钱',
|
|
||||||
'class_name' => 'MaQian',
|
|
||||||
'price' => '49.00',
|
|
||||||
'describe' => '码钱商管平台',
|
|
||||||
'website' => 'https://m.hkrt.cn/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(
|
|
||||||
'terminalType' => '',
|
|
||||||
'payType' => '',
|
|
||||||
'payMode' => '',
|
|
||||||
'tradeStatus' => '1',
|
|
||||||
'tradeNo' => '',
|
|
||||||
'storeId' => '',
|
|
||||||
'page' => 1,
|
|
||||||
'rows' => 10,
|
|
||||||
'endDate' => NULL,
|
|
||||||
'endTime' => NULL,
|
|
||||||
'startDate' => NULL,
|
|
||||||
'startTime' => NULL,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
6 =>
|
|
||||||
array(
|
|
||||||
'platform' => 'lklpay',
|
|
||||||
'name' => '拉卡拉',
|
|
||||||
'class_name' => 'LaKaLa',
|
|
||||||
'price' => '89.00',
|
|
||||||
'describe' => '数字支付,更安全,更高效',
|
|
||||||
'website' => 'https://customer.lakala.com/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(
|
|
||||||
'requestTime' => NULL,
|
|
||||||
'systemCode' => 'MERDASH',
|
|
||||||
'version' => '1.0',
|
|
||||||
'openEntity' => NULL,
|
|
||||||
'requestId' => NULL,
|
|
||||||
'pageSize' => 10,
|
|
||||||
'pageNum' => 1,
|
|
||||||
'startTime' => NULL,
|
|
||||||
'timeOption' => NULL,
|
|
||||||
'tranSts' => 'SUCCESS',
|
|
||||||
'orderNo' => NULL,
|
|
||||||
'srefno' => NULL,
|
|
||||||
'ornNo' => NULL,
|
|
||||||
'endTime' => NULL,
|
|
||||||
'startDate' => NULL,
|
|
||||||
'endDate' => NULL,
|
|
||||||
'page' => 1,
|
|
||||||
'size' => 10,
|
|
||||||
'merchantNos' => NULL,
|
|
||||||
'merInnerNos' => NULL,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
7 =>
|
|
||||||
array(
|
|
||||||
'platform' => 'sftpay',
|
|
||||||
'name' => '盛付通',
|
|
||||||
'class_name' => 'ShengPay',
|
|
||||||
'price' => '69.00',
|
|
||||||
'describe' => '轻松生活 放心支付',
|
|
||||||
'website' => 'https://b.shengpay.com/',
|
|
||||||
'state' => 0,
|
|
||||||
'query' =>
|
|
||||||
array(),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
return $app_plugin;
|
|
||||||
}
|
}
|
||||||
// 请求外部资源
|
// 请求外部资源
|
||||||
private function getHttpResponse($url, $header = [], $post = null, $timeout = 10)
|
private function getHttpResponse($url, $header = [], $post = null, $timeout = 10)
|
||||||
|
Before Width: | Height: | Size: 294 KiB |
Before Width: | Height: | Size: 350 KiB |
Before Width: | Height: | Size: 216 KiB |
Before Width: | Height: | Size: 188 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 114 KiB |
@ -65,6 +65,6 @@
|
|||||||
"footer": false
|
"footer": false
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"message": "/admin/data/message.json"
|
"message": "/Console/message"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -79,4 +79,4 @@ other:
|
|||||||
## 头部配置
|
## 头部配置
|
||||||
header:
|
header:
|
||||||
## 站内消息,通过 false 设置关闭
|
## 站内消息,通过 false 设置关闭
|
||||||
message: "/admin/data/message.json"
|
message: "/Console/message"
|
@ -1 +0,0 @@
|
|||||||
a:5:{s:6:"userid";i:1;s:3:"pid";i:1000;s:8:"nickname";s:12:"勇敢牛牛";s:8:"userrole";i:1;s:7:"islogin";b:1;}
|
|