mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-11-02 07:43:43 +08:00
更新文件结构
This commit is contained in:
@@ -20,7 +20,7 @@ class ConsoleController extends BaseController
|
||||
public function menu()
|
||||
{
|
||||
// 加载菜单配置
|
||||
$menu = \think\facade\Config::load("extendconfig/menu", 'extendconfig');
|
||||
$menu = \think\facade\Config::load("extend/menu", 'extend');
|
||||
return json($menu);
|
||||
}
|
||||
// 管理菜单
|
||||
|
||||
@@ -171,7 +171,7 @@ class PluginController extends BaseController
|
||||
// 获取插件配置
|
||||
private static function getPluginConfig(): array
|
||||
{
|
||||
$payplugin_path = config_path() . '/extendconfig/payplugin.php';
|
||||
$payplugin_path = config_path() . '/extend/payplugin.php';
|
||||
if (!file_exists($payplugin_path)) {
|
||||
return [];
|
||||
}
|
||||
@@ -182,7 +182,7 @@ class PluginController extends BaseController
|
||||
// 保存插件配置
|
||||
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
|
||||
|
||||
@@ -63,7 +63,7 @@ class PayAccount extends BaseModel
|
||||
// 获取器
|
||||
public function getPlatformAttr($value)
|
||||
{
|
||||
$payplugin_path = config_path() . '/extendconfig/payplugin.php';
|
||||
$payplugin_path = config_path() . '/extend/payplugin.php';
|
||||
if (!file_exists($payplugin_path)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user