Skip to content

Commit

Permalink
🚀 Fix any
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed May 9, 2023
1 parent d4a0e96 commit b23a1db
Show file tree
Hide file tree
Showing 8 changed files with 830 additions and 92 deletions.
2 changes: 1 addition & 1 deletion ci/version.code.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.1.10
v1.1.11
14 changes: 2 additions & 12 deletions ci/version.info.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
v1.1.10
v1.1.11
- [x] 🚀修复分流

v1.1.9
- [x] 🚀升级渲染引擎
- [x] 🚀必须注册登录
- [x] 🚀回收一些系统管理权限, 免除一些系统报警

v1.1.8

- [x] 🚀升级渲染引擎
- [x] 🐛修复一些图片显示红叉
- [x] 🚀增加分流
- [x] 🚀修复发电
6 changes: 3 additions & 3 deletions lib/configs/host.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import 'package:wax/basic/methods.dart';

const _defaultHost = "https://www.htmanga2.top/";
const _hostMap = {
"http://www.htmanga3.top/": "TOP3",
"http://www.htmanga4.top/": "TOP4",
"http://www.htmanga5.top/": "TOP5",
"https://www.htmanga3.top/": "TOP3",
"https://www.htmanga4.top/": "TOP4",
"https://www.htmanga5.top/": "TOP5",
};

late String host;
Expand Down
16 changes: 16 additions & 0 deletions lib/configs/passed.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import '../basic/methods.dart';

const _propertyName = "passed";
late bool _passed;

Future<void> initPassed() async {
_passed = (await methods.loadProperty(k: _propertyName)) == "true";
}

bool currentPassed() {
return _passed;
}

Future<void> firstPassed() async {
await methods.saveProperty(k: _propertyName, v: "true");
}
720 changes: 720 additions & 0 deletions lib/screens/calculator_screen.dart

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions lib/screens/init_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import '../configs/android_version.dart';
import '../configs/auto_clean.dart';
import '../configs/download_thread_count.dart';
import '../configs/login_state.dart';
import '../configs/passed.dart';
import '../configs/reader_controller_type.dart';
import '../configs/reader_direction.dart';
import '../configs/reader_slider_position.dart';
Expand All @@ -19,6 +20,7 @@ import '../configs/themes.dart';
import '../configs/versions.dart';
import '../configs/volume_controller.dart';
import 'app_screen.dart';
import 'calculator_screen.dart';
import 'first_login_screen.dart';

class InitScreen extends StatefulWidget {
Expand Down Expand Up @@ -46,13 +48,14 @@ class _InitScreenState extends State<InitScreen> {
await initVolumeController();
await reloadIsPro();
await initDownloadThreadCount();
await initPassed();
autoCheckNewVersion();
await initLogin();
if (await methods.loadProperty(k: "last_username") == "") {
if (!currentPassed()) {
Future.delayed(Duration.zero, () async {
Navigator.of(context).pushReplacement(
MaterialPageRoute(builder: (BuildContext context) {
return firstLoginScreen;
return const CalculatorScreen();
}),
);
});
Expand Down
Loading

0 comments on commit b23a1db

Please sign in to comment.