1
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'debug' => true,
|
||||
'controller_suffix' => 'Controller',
|
||||
'controller_reuse' => false,
|
||||
'public_path' => '',//run_path('plugin' . DIRECTORY_SEPARATOR. 'admin' . DIRECTORY_SEPARATOR . 'public'),
|
||||
'plugin_market_host' => 'https://www.workerman.net',
|
||||
'version' => '0.6.30',
|
||||
];
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'files' => [
|
||||
base_path() . '/plugin/admin/app/functions.php',
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
//\\app\bootstrap\SqlDebug::class
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return new Webman\Container;
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
return [
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [];
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
];
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'' => plugin\admin\app\exception\Handler::class,
|
||||
];
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'default' => [
|
||||
'handlers' => [
|
||||
[
|
||||
'class' => Monolog\Handler\RotatingFileHandler::class,
|
||||
'constructor' => [
|
||||
runtime_path() . '/logs/webman.log',
|
||||
7, //$maxFiles
|
||||
Monolog\Logger::DEBUG,
|
||||
],
|
||||
'formatter' => [
|
||||
'class' => Monolog\Formatter\LineFormatter::class,
|
||||
'constructor' => [null, 'Y-m-d H:i:s', true],
|
||||
],
|
||||
]
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,742 @@
|
||||
<?php
|
||||
return array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'title' => '通用设置',
|
||||
'icon' => 'mdi mdi-cog-outline',
|
||||
'key' => 'common',
|
||||
'pid' => 0,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2025-05-17 01:30:53',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 900,
|
||||
'status' => 1,
|
||||
'name' => '通用设置',
|
||||
'value' => 9,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'title' => '个人资料',
|
||||
'icon' => '',
|
||||
'key' => 'app\\controller\\AccountController',
|
||||
'pid' => 9,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-08 22:04:42',
|
||||
'href' => '/account/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 800,
|
||||
'status' => 1,
|
||||
'name' => '个人资料',
|
||||
'value' => 10,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 11,
|
||||
'title' => '附件管理',
|
||||
'icon' => '',
|
||||
'key' => 'app\\controller\\AttachmentController',
|
||||
'pid' => 9,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-13 17:10:45',
|
||||
'href' => '/attachment/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 700,
|
||||
'status' => 0,
|
||||
'name' => '附件管理',
|
||||
'value' => 11,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 12,
|
||||
'title' => '字典设置',
|
||||
'icon' => '',
|
||||
'key' => 'app\\controller\\DictController',
|
||||
'pid' => 9,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-08 22:04:42',
|
||||
'href' => '/dict/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 600,
|
||||
'status' => 0,
|
||||
'name' => '字典设置',
|
||||
'value' => 12,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 13,
|
||||
'title' => '系统设置',
|
||||
'icon' => '',
|
||||
'key' => 'app\\controller\\ConfigController',
|
||||
'pid' => 9,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-08 22:04:42',
|
||||
'href' => '/config/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 500,
|
||||
'status' => 1,
|
||||
'name' => '系统设置',
|
||||
'value' => 13,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 65,
|
||||
'title' => '用户管理',
|
||||
'icon' => 'mdi mdi-account',
|
||||
'key' => 'user',
|
||||
'pid' => 0,
|
||||
'created_at' => '2024-09-12 18:03:02',
|
||||
'updated_at' => '2025-05-17 01:31:00',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 800,
|
||||
'status' => 1,
|
||||
'name' => '用户管理',
|
||||
'value' => 65,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 66,
|
||||
'title' => '用户管理',
|
||||
'icon' => 'mdi mdi-account-group',
|
||||
'key' => 'app\\controller\\UserController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2024-09-12 18:04:22',
|
||||
'updated_at' => '2025-05-17 01:40:26',
|
||||
'href' => '/User/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '用户管理',
|
||||
'value' => 66,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 137,
|
||||
'title' => '余额日志',
|
||||
'icon' => 'mdi mdi-currency-cny',
|
||||
'key' => 'app\\controller\\BalanceLogController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2024-09-13 19:31:33',
|
||||
'updated_at' => '2025-05-17 01:42:46',
|
||||
'href' => '/balancelog/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '余额日志',
|
||||
'value' => 137,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 143,
|
||||
'title' => '用户提现',
|
||||
'icon' => 'mdi mdi-debug-step-out',
|
||||
'key' => 'app\\controller\\WithdrawlController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2024-09-18 08:52:01',
|
||||
'updated_at' => '2025-05-17 01:42:19',
|
||||
'href' => '/withdrawl/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '用户提现',
|
||||
'value' => 143,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 261,
|
||||
'title' => '用户地址',
|
||||
'icon' => 'mdi mdi-credit-card-check-outline',
|
||||
'key' => 'app\\controller\\AddressController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2024-12-30 22:45:28',
|
||||
'updated_at' => '2025-05-17 01:41:16',
|
||||
'href' => '/address/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '用户地址',
|
||||
'value' => 261,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 518,
|
||||
'title' => '用户宣传',
|
||||
'icon' => 'mdi mdi-content-paste',
|
||||
'key' => 'app\\controller\\XuanchuanController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2025-09-06 15:51:47',
|
||||
'updated_at' => '2025-09-06 15:51:47',
|
||||
'href' => '/Xuanchuan/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '用户宣传',
|
||||
'value' => 518,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 576,
|
||||
'title' => '邀请码',
|
||||
'icon' => 'mdi mdi-unicode',
|
||||
'key' => 'app\\controller\\InvitecodeController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2025-09-22 19:43:16',
|
||||
'updated_at' => '2025-09-22 19:43:37',
|
||||
'href' => '/Invitecode/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '邀请码',
|
||||
'value' => 576,
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 67,
|
||||
'title' => '用户权限',
|
||||
'icon' => 'mdi mdi-account-settings',
|
||||
'key' => 'app\\controller\\UserRuleController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2024-09-12 18:05:35',
|
||||
'updated_at' => '2024-09-12 18:05:35',
|
||||
'href' => '/userrule/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => NULL,
|
||||
'status' => 0,
|
||||
'name' => '用户权限',
|
||||
'value' => 67,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 68,
|
||||
'title' => '用户角色',
|
||||
'icon' => 'mdi mdi-account-multiple',
|
||||
'key' => 'app\\controller\\UserRoleController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2024-09-12 18:06:23',
|
||||
'updated_at' => '2024-09-12 18:08:29',
|
||||
'href' => '/userrole/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => NULL,
|
||||
'status' => 1,
|
||||
'name' => '用户角色',
|
||||
'value' => 68,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 260,
|
||||
'title' => '充值订单',
|
||||
'icon' => 'mdi mdi-debug-step-into',
|
||||
'key' => 'app\\controller\\RechargeController',
|
||||
'pid' => 65,
|
||||
'created_at' => '2024-12-30 22:44:29',
|
||||
'updated_at' => '2024-12-30 22:45:58',
|
||||
'href' => '/recharge/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => NULL,
|
||||
'status' => 1,
|
||||
'name' => '充值订单',
|
||||
'value' => 260,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 64,
|
||||
'title' => '内容管理',
|
||||
'icon' => 'mdi mdi-content-paste',
|
||||
'key' => 'Content',
|
||||
'pid' => 0,
|
||||
'created_at' => NULL,
|
||||
'updated_at' => '2025-05-17 01:31:07',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 700,
|
||||
'status' => 1,
|
||||
'name' => '内容管理',
|
||||
'value' => 64,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 63,
|
||||
'title' => '分类管理',
|
||||
'icon' => 'mdi mdi-book-open-outline',
|
||||
'key' => 'app\\controller\\CategoryController',
|
||||
'pid' => 64,
|
||||
'created_at' => NULL,
|
||||
'updated_at' => '2025-05-17 01:24:55',
|
||||
'href' => '/Category/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 900,
|
||||
'status' => 1,
|
||||
'name' => '分类管理',
|
||||
'value' => 63,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 145,
|
||||
'title' => '文章管理',
|
||||
'icon' => 'mdi mdi-file-document-multiple-outline',
|
||||
'key' => 'app\\controller\\ArticleController',
|
||||
'pid' => 64,
|
||||
'created_at' => '2024-09-19 15:52:52',
|
||||
'updated_at' => '2025-05-17 01:39:24',
|
||||
'href' => '/article/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 2,
|
||||
'status' => 1,
|
||||
'name' => '文章管理',
|
||||
'value' => 145,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 237,
|
||||
'title' => '单页内容',
|
||||
'icon' => 'mdi mdi-file-delimited',
|
||||
'key' => 'app\\controller\\SinglepageController',
|
||||
'pid' => 64,
|
||||
'created_at' => '2024-12-30 22:37:53',
|
||||
'updated_at' => '2025-05-17 01:28:51',
|
||||
'href' => '/singlepage/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 1,
|
||||
'status' => 1,
|
||||
'name' => '单页内容',
|
||||
'value' => 237,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 144,
|
||||
'title' => '广告管理',
|
||||
'icon' => 'mdi mdi-file-video',
|
||||
'key' => 'app\\controller\\InfomercialController',
|
||||
'pid' => 64,
|
||||
'created_at' => '2024-09-18 08:53:05',
|
||||
'updated_at' => '2024-09-18 08:53:05',
|
||||
'href' => '/infomercial/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => NULL,
|
||||
'status' => 0,
|
||||
'name' => '广告管理',
|
||||
'value' => 144,
|
||||
),
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 549,
|
||||
'title' => '礼品中心',
|
||||
'icon' => 'mdi mdi-gift',
|
||||
'key' => 'GiftController',
|
||||
'pid' => 0,
|
||||
'created_at' => '2025-09-17 01:48:09',
|
||||
'updated_at' => '2025-09-17 01:48:23',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 600,
|
||||
'status' => 1,
|
||||
'name' => '礼品中心',
|
||||
'value' => 549,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 542,
|
||||
'title' => '礼品管理',
|
||||
'icon' => 'mdi mdi-gift-outline',
|
||||
'key' => 'app\\controller\\GiftController',
|
||||
'pid' => 549,
|
||||
'created_at' => '2025-09-07 23:35:12',
|
||||
'updated_at' => '2025-09-17 01:48:45',
|
||||
'href' => '/Gift/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '礼品管理',
|
||||
'value' => 542,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 550,
|
||||
'title' => '购买记录',
|
||||
'icon' => 'mdi mdi-format-list-bulleted',
|
||||
'key' => 'app\\controller\\GiftOrderController',
|
||||
'pid' => 549,
|
||||
'created_at' => '2025-09-17 01:49:26',
|
||||
'updated_at' => '2025-09-17 02:50:47',
|
||||
'href' => '/GiftOrder/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '购买记录',
|
||||
'value' => 550,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 551,
|
||||
'title' => '产品中心',
|
||||
'icon' => 'mdi mdi-server',
|
||||
'key' => 'ProductController',
|
||||
'pid' => 0,
|
||||
'created_at' => '2025-09-17 01:51:52',
|
||||
'updated_at' => '2025-09-17 01:51:52',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 500,
|
||||
'status' => 1,
|
||||
'name' => '产品中心',
|
||||
'value' => 551,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 511,
|
||||
'title' => '问卷管理',
|
||||
'icon' => 'mdi mdi-file-question',
|
||||
'key' => 'app\\controller\\QuestionnaireController',
|
||||
'pid' => 551,
|
||||
'created_at' => '2025-05-16 03:05:46',
|
||||
'updated_at' => '2025-09-17 01:52:31',
|
||||
'href' => '/questionnaire/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 800,
|
||||
'status' => 1,
|
||||
'name' => '问卷管理',
|
||||
'value' => 511,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 210,
|
||||
'title' => '产品管理',
|
||||
'icon' => 'mdi mdi-code-equal',
|
||||
'key' => 'app\\controller\\ProductController',
|
||||
'pid' => 551,
|
||||
'created_at' => '2024-09-27 17:17:51',
|
||||
'updated_at' => '2025-09-17 01:52:07',
|
||||
'href' => '/product/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 700,
|
||||
'status' => 1,
|
||||
'name' => '产品管理',
|
||||
'value' => 210,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 279,
|
||||
'title' => '购买记录',
|
||||
'icon' => 'mdi mdi-format-list-bulleted',
|
||||
'key' => 'app\\controller\\ProductOrderController',
|
||||
'pid' => 551,
|
||||
'created_at' => '2025-02-24 18:11:50',
|
||||
'updated_at' => '2025-09-17 01:53:22',
|
||||
'href' => '/productorder/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '购买记录',
|
||||
'value' => 279,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 559,
|
||||
'title' => 'CDKEY',
|
||||
'icon' => 'mdi mdi-table-key',
|
||||
'key' => 'cdkey',
|
||||
'pid' => 0,
|
||||
'created_at' => '2025-09-18 17:29:28',
|
||||
'updated_at' => '2025-09-18 17:30:11',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 400,
|
||||
'status' => 0,
|
||||
'name' => 'CDKEY',
|
||||
'value' => 559,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 558,
|
||||
'title' => '卡密管理',
|
||||
'icon' => 'mdi mdi-code-equal',
|
||||
'key' => 'app\\controller\\CardController',
|
||||
'pid' => 559,
|
||||
'created_at' => '2024-09-27 17:17:51',
|
||||
'updated_at' => '2025-09-18 17:31:38',
|
||||
'href' => '/card/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 2,
|
||||
'status' => 1,
|
||||
'name' => '卡密管理',
|
||||
'value' => 558,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'title' => '权限管理',
|
||||
'icon' => 'mdi mdi-account-settings',
|
||||
'key' => 'auth',
|
||||
'pid' => 0,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2025-05-17 01:31:17',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 300,
|
||||
'status' => 1,
|
||||
'name' => '权限管理',
|
||||
'value' => 3,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'title' => '账户管理',
|
||||
'icon' => 'mdi mdi-human-child',
|
||||
'key' => 'app\\controller\\AdminController',
|
||||
'pid' => 3,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-08 22:04:42',
|
||||
'href' => '/admin/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 1000,
|
||||
'status' => 1,
|
||||
'name' => '账户管理',
|
||||
'value' => 4,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'title' => '角色管理',
|
||||
'icon' => 'mdi mdi-account-settings',
|
||||
'key' => 'app\\controller\\AdminRoleController',
|
||||
'pid' => 3,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-12 17:34:10',
|
||||
'href' => '/adminrole/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 900,
|
||||
'status' => 1,
|
||||
'name' => '角色管理',
|
||||
'value' => 5,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'title' => '菜单管理',
|
||||
'icon' => 'mdi mdi-menu',
|
||||
'key' => 'app\\controller\\AdminRuleController',
|
||||
'pid' => 3,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-12 17:34:21',
|
||||
'href' => '/adminrule/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 800,
|
||||
'status' => 1,
|
||||
'name' => '菜单管理',
|
||||
'value' => 6,
|
||||
'children' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 235,
|
||||
'title' => '外部工具',
|
||||
'icon' => 'mdi mdi-auto-fix',
|
||||
'key' => 'extend_tools',
|
||||
'pid' => 0,
|
||||
'created_at' => '2024-10-19 22:25:49',
|
||||
'updated_at' => '2025-05-17 01:31:22',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => '',
|
||||
'weight' => 200,
|
||||
'status' => 1,
|
||||
'name' => '外部工具',
|
||||
'value' => 235,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 236,
|
||||
'title' => '客服',
|
||||
'icon' => 'mdi mdi-account-settings',
|
||||
'key' => 'kamengkefu',
|
||||
'pid' => 235,
|
||||
'created_at' => '2024-10-19 22:26:52',
|
||||
'updated_at' => '2025-06-12 23:07:53',
|
||||
'href' => 'http://im.dxmt.io',
|
||||
'type' => 1,
|
||||
'extend' => 'target="_blank"',
|
||||
'weight' => 0,
|
||||
'status' => 1,
|
||||
'name' => '客服',
|
||||
'value' => 236,
|
||||
),
|
||||
),
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 16,
|
||||
'title' => '开发辅助',
|
||||
'icon' => 'mdi mdi-deviantart',
|
||||
'key' => 'dev',
|
||||
'pid' => 0,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2025-05-17 01:31:29',
|
||||
'href' => '',
|
||||
'type' => 0,
|
||||
'extend' => NULL,
|
||||
'weight' => 100,
|
||||
'status' => 0,
|
||||
'name' => '开发辅助',
|
||||
'value' => 16,
|
||||
'children' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'title' => '所有表',
|
||||
'icon' => '',
|
||||
'key' => 'app\\controller\\TableController',
|
||||
'pid' => 16,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2024-09-18 08:56:22',
|
||||
'href' => '/table/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 800,
|
||||
'status' => 0,
|
||||
'name' => '所有表',
|
||||
'value' => 2,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 17,
|
||||
'title' => '表单构建',
|
||||
'icon' => 'mdi mdi-access-point-network-off',
|
||||
'key' => 'app\\controller\\DevController',
|
||||
'pid' => 16,
|
||||
'created_at' => '2024-09-08 22:04:42',
|
||||
'updated_at' => '2025-04-14 06:20:49',
|
||||
'href' => '/dev/index',
|
||||
'type' => 1,
|
||||
'extend' => NULL,
|
||||
'weight' => 800,
|
||||
'status' => 1,
|
||||
'name' => '表单构建',
|
||||
'value' => 17,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use plugin\admin\app\middleware\AccessControl;
|
||||
|
||||
return [
|
||||
'' => [
|
||||
AccessControl::class,
|
||||
\app\middleware\ActionHook::class,
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
];
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use plugin\admin\app\controller\AccountController;
|
||||
use Webman\Route;
|
||||
use support\Request;
|
||||
|
||||
Route::any('/app/admin/account/captcha/{type}', [AccountController::class, 'captcha']);
|
||||
|
||||
Route::fallback(function (Request $request) {
|
||||
return view('common/404');
|
||||
}, 'admin');
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Static file settings
|
||||
*/
|
||||
return [
|
||||
'enable' => true,
|
||||
'middleware' => [
|
||||
// Static file Middleware
|
||||
//app\middleware\StaticFile::class,
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Multilingual configuration
|
||||
*/
|
||||
return [
|
||||
// Default language
|
||||
'locale' => 'zh_CN',
|
||||
// Fallback language
|
||||
'fallback_locale' => ['zh_CN', 'en'],
|
||||
// Folder where language files are stored
|
||||
'path' => base_path() . '/plugin/admin/resource/translations'
|
||||
];
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use support\view\Raw;
|
||||
use support\view\Twig;
|
||||
use support\view\Blade;
|
||||
use support\view\ThinkPHP;
|
||||
|
||||
return [
|
||||
'handler' => ThinkPHP::class,
|
||||
'options' => [
|
||||
'tpl_cache' => false,
|
||||
'taglib_pre_load' => 'support\\TagLib\\Html',
|
||||
'tpl_replace_string' => [
|
||||
'__CSS__' => Config('site.cdnurl').'/app/admin/css',
|
||||
'__JS__' => Config('site.cdnurl').'/app/admin/js',
|
||||
'__IMG__' => Config('site.cdnurl').'/app/admin/images',
|
||||
'__CDN__' => Config('site.cdnurl'),
|
||||
'__ROOT__'=> ''
|
||||
],
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user