提交 34109609 authored 作者: yueweilu's avatar yueweilu

add

上级 fca5968a
......@@ -93,21 +93,9 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
// if(Platform.isAndroid){
// _checkUpdates();
// }
// 测试添加数据库数据
// testInsertData();
// Map<String, dynamic> data = {
// 'types': 1,
// 'book_id': 175,
// 'chapter_id': 334,
// 'is_open': 1,
// 'color': 'blue',
// 'content': 'This is a note content',
// 'upload': 0,
// 'positioning': 'top',
// 'note_content': 'This is a note',
// 'node_id': 0,
// };
//
// await SqlManager.insertData(data);
final result = await Tools.checkCurrentNetStatus();
// 有网络 并且是登录状态 的时候上传 笔记
......@@ -386,6 +374,23 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
}
}
void testInsertData() async{
Map<String, dynamic> data = {
'types': 1,
'book_id': 175,
'chapter_id': 334,
'is_open': 1,
'color': 'blue',
'content': 'This is a note content',
'upload': 0,
'positioning': 'top',
'note_content': 'This is a note',
'node_id': 0,
};
await SqlManager.insertData(data);
}
void _checkUpdates() async {
UModel model = await MineAPI.update();
_getModel = model;
......@@ -534,8 +539,6 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
);
}
/// TODO: 苹果市场app地址
_appUpdate() {
UpdateModel model = UpdateModel(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论