Procházet zdrojové kódy

0111 推送初始化方法位置调整

tags/0.0.3+4
23028876916@qq.com před 3 roky
rodič
revize
242adc627d
2 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +1
    -1
      example/lib/main.dart
  2. +2
    -0
      lib/register.dart

+ 1
- 1
example/lib/main.dart Zobrazit soubor

@@ -53,7 +53,7 @@ class _MyAppState extends State<MyApp> {
FlutterAlibc.initAlibc(version: "", appName: "").then((result) { FlutterAlibc.initAlibc(version: "", appName: "").then((result) {
print("白川" + '${result.errorCode} ${result.errorMessage}'); print("白川" + '${result.errorCode} ${result.errorMessage}');
}); });
MobPushUtil.setCanPush();


// app更新插件 // app更新插件
AppUpdateUtil.initXUpdate(); AppUpdateUtil.initXUpdate();


+ 2
- 0
lib/register.dart Zobrazit soubor

@@ -35,6 +35,7 @@ import 'package:zhiying_base_widget/pages/team_page/team_page.dart';
import 'package:zhiying_base_widget/pages/webview/base_webview.dart'; import 'package:zhiying_base_widget/pages/webview/base_webview.dart';
import 'package:zhiying_base_widget/pages/wechat_teacher_page/wechat_teacher_page.dart'; import 'package:zhiying_base_widget/pages/wechat_teacher_page/wechat_teacher_page.dart';
import 'package:zhiying_base_widget/pages/withdraw_page/withdraw_page.dart'; import 'package:zhiying_base_widget/pages/withdraw_page/withdraw_page.dart';
import 'package:zhiying_base_widget/utils/mob_push_util.dart';
import 'package:zhiying_base_widget/widgets/custom/banner/custom_banner_widget.dart'; import 'package:zhiying_base_widget/widgets/custom/banner/custom_banner_widget.dart';
import 'package:zhiying_base_widget/widgets/custom/goods/custom_goods_creater.dart'; import 'package:zhiying_base_widget/widgets/custom/goods/custom_goods_creater.dart';
import 'package:zhiying_base_widget/widgets/custom/multi_nav/custom_quick_entry.dart'; import 'package:zhiying_base_widget/widgets/custom/multi_nav/custom_quick_entry.dart';
@@ -134,6 +135,7 @@ class BaseWidgetRegister {
// MOB 秒验 // MOB 秒验
MobUtil.init(); MobUtil.init();


MobPushUtil.setCanPush();
// 缓存可能用到的数据,预加载 // 缓存可能用到的数据,预加载
Application.addMethod(() { Application.addMethod(() {
// 精选的数据 // 精选的数据


Načítá se…
Zrušit
Uložit