mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-18 01:36:40 +08:00
更新文件结构
This commit is contained in:
parent
e85e71f8d9
commit
b266e1ad7c
@ -20,7 +20,7 @@ class ConsoleController extends BaseController
|
|||||||
public function menu()
|
public function menu()
|
||||||
{
|
{
|
||||||
// 加载菜单配置
|
// 加载菜单配置
|
||||||
$menu = \think\facade\Config::load("extendconfig/menu", 'extendconfig');
|
$menu = \think\facade\Config::load("extend/menu", 'extend');
|
||||||
return json($menu);
|
return json($menu);
|
||||||
}
|
}
|
||||||
// 管理菜单
|
// 管理菜单
|
||||||
|
@ -171,7 +171,7 @@ class PluginController extends BaseController
|
|||||||
// 获取插件配置
|
// 获取插件配置
|
||||||
private static function getPluginConfig(): array
|
private static function getPluginConfig(): array
|
||||||
{
|
{
|
||||||
$payplugin_path = config_path() . '/extendconfig/payplugin.php';
|
$payplugin_path = config_path() . '/extend/payplugin.php';
|
||||||
if (!file_exists($payplugin_path)) {
|
if (!file_exists($payplugin_path)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
@ -182,7 +182,7 @@ class PluginController extends BaseController
|
|||||||
// 保存插件配置
|
// 保存插件配置
|
||||||
private function savePluginConfig(array $config, string $note = '说明')
|
private function savePluginConfig(array $config, string $note = '说明')
|
||||||
{
|
{
|
||||||
$payplugin_path = config_path() . '/extendconfig/payplugin.php';
|
$payplugin_path = config_path() . '/extend/payplugin.php';
|
||||||
$note_tpl = <<<EOF
|
$note_tpl = <<<EOF
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | $note
|
// | $note
|
||||||
|
@ -63,7 +63,7 @@ class PayAccount extends BaseModel
|
|||||||
// 获取器
|
// 获取器
|
||||||
public function getPlatformAttr($value)
|
public function getPlatformAttr($value)
|
||||||
{
|
{
|
||||||
$payplugin_path = config_path() . '/extendconfig/payplugin.php';
|
$payplugin_path = config_path() . '/extend/payplugin.php';
|
||||||
if (!file_exists($payplugin_path)) {
|
if (!file_exists($payplugin_path)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user