diff --git a/ci/version.code.txt b/ci/version.code.txt index b2080c3..a3c20cb 100644 --- a/ci/version.code.txt +++ b/ci/version.code.txt @@ -1 +1 @@ -v0.1.18 \ No newline at end of file +v0.1.19 \ No newline at end of file diff --git a/ci/version.info.txt b/ci/version.info.txt index f739b02..dc84aad 100644 --- a/ci/version.info.txt +++ b/ci/version.info.txt @@ -1,10 +1,12 @@ 计划 - [x] 下载? / / 高清画质? / / 通过点击进行上一页下一页? +v0.1.19 + - [x] ✨ 使用web浏览器打开漫画时跳转到app处理(需要在设置中开启) + - [x] ♻️ 再次修复漫画看不了 + - [x] ♻️ 一些文案的优化 + - [x] ♻️ 签到功能(新用户签到后才能正常使用) + v0.1.18 - [x] ♻️ 修复漫画看不了 - [x] ♻️ 去除切换全屏抖动 - -v0.1.17 - - [x] ♻️ 优化体验: 小说默认非透明背景色 - - [x] 🐛 修复BUG: 小说订阅能用 diff --git a/lib/screens/about_screen.dart b/lib/screens/about_screen.dart index 2fcbcfb..695da6e 100644 --- a/lib/screens/about_screen.dart +++ b/lib/screens/about_screen.dart @@ -1,10 +1,12 @@ import 'dart:io'; +import 'package:daisy/commons.dart'; import 'package:daisy/configs/android_display_mode.dart'; import 'package:daisy/configs/auto_clean.dart'; import 'package:daisy/configs/login.dart'; import 'package:daisy/configs/themes.dart'; import 'package:daisy/configs/versions.dart'; +import 'package:daisy/ffi.dart'; import 'package:flutter/material.dart'; import '../configs/novel_reader_type.dart'; @@ -53,6 +55,8 @@ class _AboutState extends State { const Divider(), ..._loginInfo(), const Divider(), + _buildSign(), + const Divider(), _buildCurrentVersion(), const Divider(), _buildNewestVersion(), @@ -114,6 +118,24 @@ class _AboutState extends State { ); } + Widget _buildSign() { + return ListTile( + title: const Text("签到"), + subtitle: const Text("新用户必须签到一次才能正常使用APP"), + onTap: () async { + try { + var taskIndex = await native.taskIndex(); + if (!(taskIndex.daySignTask.status > 0)) { + await native.taskSign(); + } + defaultToast(context, "签到成功"); + } catch (e, s) { + defaultToast(context, "签到失败 : $e"); + } + }, + ); + } + Widget _buildCurrentVersion() { return Container( padding: const EdgeInsets.fromLTRB(20, 10, 20, 10), diff --git a/lib/screens/components/content_error.dart b/lib/screens/components/content_error.dart index a82eee5..507e505 100644 --- a/lib/screens/components/content_error.dart +++ b/lib/screens/components/content_error.dart @@ -41,6 +41,10 @@ class ContentError extends StatelessWidget { message = "啊哦, 被玩坏了"; break; } + if ("$error".contains("暂时无法观看")) { + iconData = Icons.timer_off; + message = "请登录并签到一次"; + } return LayoutBuilder( builder: (BuildContext context, BoxConstraints constraints) { print("$error");