feat: 增强环境配置与开发服务,支持局域网访问及币种管理

This commit is contained in:
2026-05-21 16:24:41 +08:00
parent 699d43fbd4
commit 7a6048de10
60 changed files with 1321 additions and 443 deletions

View File

@@ -2,14 +2,15 @@
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Carbon;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use App\Support\AdminAuthorizationRegistry;
final class SyncAdminAuthorizationCommand extends Command
{
protected $signature = 'lottery:admin-auth-sync';
protected $signature = 'lottery:admin-auth-sync
{--audit : 同步完成后立即执行后台权限体检}';
protected $description = '根据后台统一注册表同步 admin_api_resources / bindings / role_api_resources';
@@ -55,6 +56,7 @@ final class SyncAdminAuthorizationCommand extends Command
$menuActionId = $menuActionIds[$permissionCode] ?? null;
if ($menuActionId === null) {
$this->warn(sprintf('跳过未找到的 permission_code: %s', $permissionCode));
continue;
}
@@ -88,6 +90,10 @@ final class SyncAdminAuthorizationCommand extends Command
$roleResourceRows->count(),
));
if ((bool) $this->option('audit')) {
return $this->call('lottery:admin-auth-audit');
}
return self::SUCCESS;
}
}