chore(config): 默认服务地址改为公网 39.162.50.99:8081

This commit is contained in:
Zhou Weidong authored and trae-solo-agent committed 2026-10-19 21:12:16 +08:00
1 parent 3d0e0804ca
commit 814b2c0b7b
2 files changed
+10 -11

No files matched your search

+5 -5
View File
@@ -57,13 +57,13 @@ void main() {
});
test('should_use_the_configured_lan_address_for_device_default', () {
expect(AppConfig.devHostBaseUrl, 'http://192.168.31.187:8081');
expect(AppConfig.devHostBaseUrl, 'http://39.162.50.99:8081');
});
test('should_apply_stored_url_only_when_debug_is_enabled', () async {
SharedPreferencesAsyncPlatform.instance =
InMemorySharedPreferencesAsync.withData({
ServerEndpoint.preferenceKey: ' http://192.168.31.187:8081/ ',
ServerEndpoint.preferenceKey: ' http://39.162.50.99:8081/ ',
});
final original = AppConfig.apiBaseUrl;
@@ -71,7 +71,7 @@ void main() {
expect(AppConfig.apiBaseUrl, original);
await ServerEndpoint.load(debug: true);
expect(AppConfig.apiBaseUrl, 'http://192.168.31.187:8081');
expect(AppConfig.apiBaseUrl, 'http://39.162.50.99:8081');
});
test('should_save_normalized_url_and_clear_override', () async {
@@ -81,10 +81,10 @@ void main() {
isNull,
);
expect(await ServerEndpoint.save(' http://192.168.31.187:8081/ '), isTrue);
expect(await ServerEndpoint.save(' http://39.162.50.99:8081/ '), isTrue);
expect(
await SharedPreferencesAsync().getString(ServerEndpoint.preferenceKey),
'http://192.168.31.187:8081',
'http://39.162.50.99:8081',
);
await ServerEndpoint.clear();