修改克隆项目时的地址

This commit is contained in:
2026-02-25 20:35:01 +08:00
parent b6891483ae
commit 79083be9ff
19 changed files with 52 additions and 52 deletions

View File

@@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS user_session (
avatar_seed TEXT NOT NULL,
access_token TEXT NOT NULL,
refresh_token TEXT NOT NULL,
server_url TEXT NOT NULL DEFAULT 'https://funmc.com',
server_url TEXT NOT NULL DEFAULT 'https://fc.funmc.cn',
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now'))
);

View File

@@ -4,8 +4,8 @@ pub const APP_NAME: &str = "FunMC";
pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
pub const APP_AUTHOR: &str = "魔幻方";
pub const DEFAULT_API_SERVER: &str = "https://funmc.com";
pub const DEFAULT_RELAY_HOST: &str = "funmc.com";
pub const DEFAULT_API_SERVER: &str = "https://fc.funmc.cn";
pub const DEFAULT_RELAY_HOST: &str = "fc.funmc.cn";
pub const DEFAULT_RELAY_PORT: u16 = 7900;
pub const BACKUP_RELAY_PORT: u16 = 7901;

View File

@@ -86,7 +86,7 @@ export default function ServerSetupPage() {
type="text"
value={serverUrl}
onChange={(e) => setServerUrl(e.target.value)}
placeholder="例如: funmc.com:3000 或 192.168.1.100:3000"
placeholder="例如: fc.funmc.cn:3000 或 192.168.1.100:3000"
className="w-full px-4 py-3 bg-gray-700/50 border border-gray-600 rounded-xl text-white placeholder-gray-500 focus:outline-none focus:border-green-500 transition-colors"
onKeyDown={(e) => e.key === 'Enter' && handleManualConnect()}
/>

View File

@@ -272,7 +272,7 @@ export default function SettingsPage() {
</div>
<div className="flex justify-between">
<span className="text-text-muted"></span>
<a href="https://funmc.com" target="_blank" rel="noopener" className="text-accent-green hover:underline">funmc.com</a>
<a href="https://fc.funmc.cn" target="_blank" rel="noopener" className="text-accent-green hover:underline">fc.funmc.cn</a>
</div>
<div className="flex justify-between">
<span className="text-text-muted"></span>