删除埋点,im和客服

This commit is contained in:
谢宇宁
2026-10-08 20:10:40 +07:00
parent 92816047c6
commit 5064de7399
133 changed files with 220 additions and 1405 deletions
+7 -9
View File
@@ -12,7 +12,7 @@ class LocalServerGuard {
bool _running = false;
bool _checking = false;
LocalServerGuard(this.cacheServer) : assert(cacheServer != null);
LocalServerGuard(this.cacheServer);
/// 运行localserver守护
Future run() async {
@@ -28,14 +28,12 @@ class LocalServerGuard {
_checking = true;
// csPrint("local_server_gard is called");
Uri uri = cacheServer.localServerUri;
if (uri != null) {
uri = uri.replace(path: LOCAL_SERVER_PING_PATH);
var options = Options(responseType: ResponseType.bytes);
// l.i(local_server_tag, "begin ping local server");
final response = await _dio.getBytes(uri.toString(), options: options);
// l.i(local_server_tag, "end ping local server");
if ((response.data?.statusCode ?? 0) > 0) return;
}
uri = uri.replace(path: LOCAL_SERVER_PING_PATH);
var options = Options(responseType: ResponseType.bytes);
// l.i(local_server_tag, "begin ping local server");
final response = await _dio.getBytes(uri.toString(), options: options);
// l.i(local_server_tag, "end ping local server");
if ((response.data?.statusCode ?? 0) > 0) return;
await cacheServer.start();
} catch (e) {
} finally {