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

m

parent 848c54c8
...@@ -19,7 +19,7 @@ class QMTJ { ...@@ -19,7 +19,7 @@ class QMTJ {
isDebug = true; isDebug = true;
} }
static init() { static init() async {
_http = Http(scheme: "http", host: "8.135.58.206", port: 8802); _http = Http(scheme: "http", host: "8.135.58.206", port: 8802);
_appStartUpId = _md5(_getDateNow().toString()); _appStartUpId = _md5(_getDateNow().toString());
ready = new Future<bool>(() async { ready = new Future<bool>(() async {
...@@ -27,6 +27,7 @@ class QMTJ { ...@@ -27,6 +27,7 @@ class QMTJ {
await _db.init(); await _db.init();
return true; return true;
}); });
await ready;
uploadPageTj(); uploadPageTj();
} }
...@@ -184,7 +185,6 @@ class QMTJ { ...@@ -184,7 +185,6 @@ 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