切换团队系统数据库公网端口到 8444 #44

Merged
WuYongJie merged 1 commits from hotfix/WuYongJie-system-database-port-8444 into main 2026-08-13 14:18:33 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ class TeamSystemDatabaseProfile
* 登录密码。资料必须保留在代码层,避免旧容器的 Laravel 配置缓存
* 缺少新配置项时把新人挡在连接页面。
*/
private const EMBEDDED_PROFILE = 'eyJ2IjoxLCJzYWx0IjoiNE5IZWlPS2ltVUxySUI1NkVYYmJudz09IiwiaXYiOiJ6K1JZT0UwNEFlajR5V0ROIiwidGFnIjoiTTJ2NHo2XC9nemh2K0owK1k2aEVCR2c9PSIsImRhdGEiOiJpcFB4TlZwZzZJbW9JN2lyUjlFSzMxV0hPOGF0aWZXMDhKdWFWZThxSFNWYlpGMlIrRW9oM1FwQnB6VjlybTBEXC9hV2VPbEtzSTI3ek5ZVHBcL1VKRzFBT21hK1wvM3g1ViswSlBQT01SN1FXbjhrWVplUWF0ZWNxYzhDZlZnb1ZsclJ2K1wvenlCT2ZnPT0ifQ==';
private const EMBEDDED_PROFILE = 'eyJ2IjoxLCJzYWx0IjoiSkdEMG5LckgxN3ZUcTRTcVY1N1NEdz09IiwiaXYiOiJoUEQyNmhrSUVPRkh6anpxIiwidGFnIjoib0dcLzVBR241a2ZLV1RxUWdLYVlcLzF3PT0iLCJkYXRhIjoiaFBxMjExdEFwMlZkdnRmVWtWU0h4dlZ2XC9RMmdTWU5jRFlxN1BJSFwvQXJHajVYU0ltbnhFKzRiTTdLaWZqYW1hYXlXNUhWVjR5ZkpYalBkbDV3ajRIWFk5cGFUNXdCZTVlR25qaTFVRGV6SmtHVEM5TUlEeTRqWExRWXBRTnRFVFZiMGFvbWJoIn0=';
public function __construct(private readonly ?string $encodedProfile = null)
{

View File

@ -12,7 +12,7 @@ class TeamSystemDatabaseProfileTest extends TestCase
{
$encoded = TeamSystemDatabaseProfile::seal([
'host' => 'shared-db.test',
'port' => 3306,
'port' => 8444,
'database' => 'shared_system',
'username' => 'shared_writer',
], 'correct-password');
@ -20,7 +20,7 @@ class TeamSystemDatabaseProfileTest extends TestCase
$settings = (new TeamSystemDatabaseProfile($encoded))->settings('correct-password');
$this->assertSame('shared-db.test', $settings['host']);
$this->assertSame(3306, $settings['port']);
$this->assertSame(8444, $settings['port']);
$this->assertSame('shared_system', $settings['database']);
$this->assertSame('shared_writer', $settings['username']);
$this->assertSame('correct-password', $settings['password']);