mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 21:43:49 +08:00
18 lines
500 B
Dart
18 lines
500 B
Dart
|
import 'package:dio/dio.dart';
|
||
|
import 'package:starcitizen_doctor/common/conf.dart';
|
||
|
import 'package:starcitizen_doctor/common/utils/base_utils.dart';
|
||
|
|
||
|
class AnalyticsApi {
|
||
|
static final Dio _dio = Dio();
|
||
|
|
||
|
static touch(String key) async {
|
||
|
dPrint("AnalyticsApi.touch === $key start");
|
||
|
try {
|
||
|
await _dio.post("${AppConf.xkeycApiUrl}/analytics/$key");
|
||
|
dPrint("AnalyticsApi.touch === $key over");
|
||
|
} catch (e) {
|
||
|
dPrint("AnalyticsApi.touch === $key Error:$e");
|
||
|
}
|
||
|
}
|
||
|
}
|