From b4558fa9e40a6245bb28cc4abd9c39c9c732d4cc Mon Sep 17 00:00:00 2001 From: Weller <1812208341@qq.com> Date: Thu, 26 Nov 2020 10:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=82=80=E8=AF=B7=E7=A0=81?= =?UTF-8?q?=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home_page/home_page.dart | 6 +++--- lib/utils/contants.dart | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index 9fd9954..186192a 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -14,6 +14,7 @@ import 'package:zhiying_base_widget/dialog/global_dialog/policy_dialog/policy_di import 'package:zhiying_base_widget/utils/contants.dart'; import 'package:zhiying_comm/models/base/base_tab_model.dart'; import 'package:zhiying_comm/util/image_util.dart'; +import 'package:zhiying_comm/util/mob_util/mob_util.dart'; import 'package:zhiying_comm/util/shared_prefe_util.dart'; import 'package:zhiying_comm/util/update/app_update_util.dart'; import 'package:zhiying_comm/zhiying_comm.dart'; @@ -215,7 +216,7 @@ class _HomePageState extends State with WidgetsBindingObserver { if (params.containsKey('tgid')) { String tgid = params['tgid'].toString(); // 记录邀请码到本地 - SharedPreferencesUtil.setNetCacheResult(Constants.mobInvitedCode, tgid); + MobUtil.storeInvitedCode(tgid); } } catch (e) { Logger.error(e); @@ -236,8 +237,7 @@ class _HomePageState extends State with WidgetsBindingObserver { if (params['params'].containsKey('tgid')) { String tgid = params['params']['tgid'].toString(); // 记录邀请码到本地 - SharedPreferencesUtil.setNetCacheResult( - Constants.mobInvitedCode, tgid); + MobUtil.storeInvitedCode(tgid); } } } catch (e) { diff --git a/lib/utils/contants.dart b/lib/utils/contants.dart index c189401..cd1aa6a 100644 --- a/lib/utils/contants.dart +++ b/lib/utils/contants.dart @@ -29,7 +29,4 @@ class Constants { //==============================版本号,控制引导页显示=================================== static String versionNumber = "versionNumber"; - - //==============================Mob场景还原邀请码=================================== - static String mobInvitedCode = "mobInvitedCode"; }