Commit 17525f2c authored by 李增强's avatar 李增强

m

parent d21111aa
......@@ -16,7 +16,7 @@ class QMTJ {
isDebug = true;
}
static void init() async {
static Future<void> init() async {
_appStartUpId = _md5(_getDateNow().toString());
_db = new DB();
await _db.init();
......@@ -93,8 +93,7 @@ class QMTJ {
"extras": extrasStr,
};
log("pageAppear", map);
await _db.db.insert("page_tj",map);
await _db.db.insert("page_tj", map);
}
/// PAGE 不可见
......@@ -102,11 +101,11 @@ class QMTJ {
{String pageId, String lastPageId, Map<String, dynamic> extras}) async {
String extrasStr = json.encode(extras);
String id = _md5("${pageId}_${lastPageId}_$extrasStr");
int disappearTime = _getDateNow();
int disappearTime = _getDateNow();
await _db.db.update(
"page_tj",
{
"disappear_time":disappearTime,
"disappear_time": disappearTime,
},
where: "id = ? and disappear_time = 0",
whereArgs: [id]);
......@@ -141,7 +140,7 @@ class QMTJ {
"extras": extrasStr,
};
log("tap", map);
await _db.db.insert("tap_tj",map);
await _db.db.insert("tap_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