Commit 1b241ab1 authored by 李增强's avatar 李增强

m

parent f72824af
...@@ -25,9 +25,9 @@ class QMTJ { ...@@ -25,9 +25,9 @@ class QMTJ {
ready = new Future<bool>(() async { ready = new Future<bool>(() async {
_db = new DB(); _db = new DB();
await _db.init(); await _db.init();
uploadPageTj();
return true; return true;
}); });
uploadPageTj();
} }
/// APP 启动 /// APP 启动
...@@ -184,6 +184,7 @@ class QMTJ { ...@@ -184,6 +184,7 @@ class QMTJ {
// 上传页面统计 // 上传页面统计
static void uploadPageTj() async { static void uploadPageTj() async {
await ready;
List<Map> list = await _db.db.query("page_tj", limit: 100, offset: 0); List<Map> list = await _db.db.query("page_tj", limit: 100, offset: 0);
if (list.length == 0) { if (list.length == 0) {
return; return;
......
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