完成封装打印和推送功能日志方法和使用

完成添加绑定设备接口的日志便于追溯
This commit is contained in:
2026-03-04 16:33:56 +08:00
parent fcfdb2c78c
commit 786d11c936
6 changed files with 239 additions and 25 deletions

View File

@@ -7,9 +7,9 @@ class EnvConfig {
static String get sentryDsn {
// 根据环境切换 DSN(去 Sentry 后台创建两个项目:Test 和 Prod)
if (environment == 'prod') {
return 'https://your_prod_dsn@sentry.io/123';
return 'https://d5fdda78335793935593efa3f4ed11bb@o4510984107261952.ingest.de.sentry.io/4510984527937616';
}
return 'https://your_test_dsn@sentry.io/456';
return 'https://1a72051f8ac6c21cde96ded18a318217@o4510984107261952.ingest.de.sentry.io/4510984468824144';
}
static bool get isProduction => environment == 'prod';