支持现场服务器地址配置

This commit is contained in:
2026-11-21 14:26:18 +08:00
parent 724f33b168
commit c284aefc7d
26 changed files with 1162 additions and 105 deletions

View File

@@ -2,6 +2,8 @@ import 'dart:convert';
import 'package:get_it/get_it.dart';
import 'package:maibu_satabot_v2/common.dart';
import 'package:maibu_satabot_v2/core/env/env_config.dart';
import 'package:maibu_satabot_v2/core/env/server_configuration.dart';
import '../../../../../core/logging/i_logger_service.dart';
import '../../../../../core/storage/user_storage.dart';
@@ -57,7 +59,7 @@ class PathHttpDatasourceImpl implements PathHttpDatasource {
// print(requestBody);
//print('🔍 [路径规划请求] ====== 请求体结束 ======');
final response = await http.post(
Uri.parse('https://servicepathplan.satabot.com/api/path'),
EnvConfig.address(ServerService.pathPlanning),
headers: {'Content'
'-Type': 'application/json', 'Authorization': token},
body: requestBody,