mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
将所有主要逻辑代码迁移到extend中,并在service中注册调用;
This commit is contained in:
@@ -45,7 +45,7 @@ class TimerBase extends Command
|
||||
|
||||
while (true) {
|
||||
try {
|
||||
$config_list = include __DIR__ . '/timer/config.php';
|
||||
$config_list = include app_file_path('common/command/timer/config.php');
|
||||
|
||||
$list_promises = [];
|
||||
foreach ($config_list as $config_item) {
|
||||
|
||||
@@ -199,7 +199,7 @@ class MigrateBase extends Command
|
||||
$data['table_keys_uni'] = $table_keys_uni;
|
||||
$data['table_keys_text'] = $table_keys_text;
|
||||
|
||||
$migrate_content = View::fetch(__DIR__ . '/migrate.tpl', $data);
|
||||
$migrate_content = View::fetch(app_file_path('common/command/curd/migrate.tpl'), $data);
|
||||
|
||||
file_put_contents(__DIR__ . '/migrate_output.php', "<?php\n\n" . $migrate_content);
|
||||
file_put_contents($dist_file_path, "<?php\n\n" . $migrate_content);
|
||||
|
||||
Reference in New Issue
Block a user