Commit d11e34dd authored by 李增强's avatar 李增强

m

parent edb5f3db
......@@ -14,6 +14,11 @@ class App {
/// APP回到前台
void onResume({Map<String, dynamic> extras}) async {
int type = 2;
// APP 启动生成本次启动ID
if (_appStartUpId == null) {
type = 1;
_appStartUpId = Utils.md5(Utils.getDateNow().toString());
}
int disappearTime = 0;
int appearTime = Utils.getDateNow();
Map<String, dynamic> map = {
......@@ -26,11 +31,6 @@ class App {
Map<String, dynamic> common = await Utils.getCommonParams();
map.addAll(common);
// APP 启动生成本次启动ID
if (_appStartUpId == null) {
type = 1;
_appStartUpId = Utils.md5(Utils.getDateNow().toString());
}
await _db.ready;
Utils.log("app onResume", map);
await _db.db.insert("app_tj", map);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment