Commit 48a1b64505987d35b6b2db17f37c05fdfafef821
1 parent
2a3621f8
feat:删除无效日志
Showing
4 changed files
with
8 additions
and
11 deletions
lib/common/core/user_util.dart
| ... | ... | @@ -60,12 +60,11 @@ class UserUtil { |
| 60 | 60 | if (currentPageName != AppRouteName.splash) { |
| 61 | 61 | Navigator.of(AppRouter.context).pushNamedAndRemoveUntil(AppRouteName.login, (route) => false); |
| 62 | 62 | }*/ |
| 63 | - Navigator.of(AppRouter.context).pushNamedAndRemoveUntil(AppRouteName.login, (route) => false, arguments: {'showPasswordPage': showPasswordLoginPage}); | |
| 63 | + pushNamedAndRemoveUntil(AppRouteName.login, (route) => false, arguments: {'showPasswordPage': showPasswordLoginPage}); | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | // 是否有游戏权限 |
| 67 | 67 | static bool hasGamePermission() { |
| 68 | - debugPrint('hasGamePermission: ${_userEntity}'); | |
| 69 | 68 | return _userEntity?.valid ?? false; |
| 70 | 69 | } |
| 71 | 70 | ... | ... |
lib/models/app_config_entity.dart
| ... | ... | @@ -17,14 +17,14 @@ class AppConfigEntity { |
| 17 | 17 | String? androidUpdatePackageUrl; |
| 18 | 18 | |
| 19 | 19 | // 安卓当前版本号 |
| 20 | - late int androidVersion; | |
| 20 | + int? androidVersion; | |
| 21 | 21 | |
| 22 | 22 | bool? iosForceUpdate; |
| 23 | 23 | |
| 24 | 24 | bool? iosRecommendUpdate; |
| 25 | 25 | |
| 26 | 26 | // ios版本 |
| 27 | - late int iosVersion; | |
| 27 | + int? iosVersion; | |
| 28 | 28 | |
| 29 | 29 | // 更新说明 |
| 30 | 30 | String? updatePackageDescription; |
| ... | ... | @@ -38,9 +38,9 @@ class AppConfigEntity { |
| 38 | 38 | |
| 39 | 39 | AppConfigEntity(); |
| 40 | 40 | |
| 41 | - factory AppConfigEntity.fromJson(Map<String, dynamic> json) => $AppConfigEntityEntityFromJson(json); | |
| 41 | + factory AppConfigEntity.fromJson(Map<String, dynamic> json) => $AppConfigEntityFromJson(json); | |
| 42 | 42 | |
| 43 | - Map<String, dynamic> toJson() => $AppConfigEntityEntityToJson(this); | |
| 43 | + Map<String, dynamic> toJson() => $AppConfigEntityToJson(this); | |
| 44 | 44 | |
| 45 | 45 | @override |
| 46 | 46 | String toString() { | ... | ... |
lib/pages/moduleSelect/bloc.dart
| ... | ... | @@ -23,15 +23,14 @@ class ModuleSelectBloc extends Bloc<ModuleSelectEvent, ModuleSelectState> { |
| 23 | 23 | if (appConfigEntity == null) { |
| 24 | 24 | return; |
| 25 | 25 | } |
| 26 | - debugPrint('WQF _checkUpdate'); | |
| 27 | 26 | if (defaultTargetPlatform == TargetPlatform.iOS) { |
| 28 | - if (localVersion < appConfigEntity.iosVersion && | |
| 27 | + if (localVersion < (appConfigEntity.iosVersion ?? 0) && | |
| 29 | 28 | appConfigEntity.iosRecommendUpdate == true) { |
| 30 | 29 | emit(UpdateDialogState( |
| 31 | 30 | appConfigEntity.iosForceUpdate ?? false, appConfigEntity)); |
| 32 | 31 | } |
| 33 | 32 | } else { |
| 34 | - if (localVersion < appConfigEntity.androidVersion && | |
| 33 | + if (localVersion < (appConfigEntity.androidVersion ?? 0) && | |
| 35 | 34 | appConfigEntity.androidRecommendUpdate == true) { |
| 36 | 35 | emit(UpdateDialogState( |
| 37 | 36 | appConfigEntity.androidForceUpdate ?? false, appConfigEntity, | ... | ... |
lib/pages/shopping/bloc.dart
| ... | ... | @@ -80,10 +80,9 @@ class ShoppingBloc extends Bloc<ShoppingEvent, ShoppingState> { |
| 80 | 80 | await fluwx?.registerApi(appId: "wx365e5a79956a450a", |
| 81 | 81 | universalLink: "https://app-api.wowenglish.com.cn/app/"); |
| 82 | 82 | wxPayResponseListener = (WeChatResponse response) { |
| 83 | - debugPrint("WqfPay wxPayResponseListener $response"); | |
| 83 | + debugPrint("wxPayResponseListener $response"); | |
| 84 | 84 | if (response is WeChatPaymentResponse) { |
| 85 | 85 | if (response.errCode == 0) { |
| 86 | - debugPrint("WqfPay wxPayResponseListener response=${response.errCode}"); | |
| 87 | 86 | showToast("支付成功"); |
| 88 | 87 | // Log.d("emitter isDone=${emitter.isDone}"); |
| 89 | 88 | ... | ... |