协议修改
This commit is contained in:
@@ -29,14 +29,6 @@ class HomeController extends GetxController with BaseControllerMixin {
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
|
||||
// 检查是否同意过隐私政策,只有同意后才初始化推送
|
||||
if (StorageService.to.isPrivacyAgreed) {
|
||||
requestPermission();
|
||||
initAliyunPush();
|
||||
addPushCallback();
|
||||
}
|
||||
|
||||
FlutterNativeSplash.remove();
|
||||
log('page-init');
|
||||
|
||||
@@ -159,6 +151,13 @@ class HomeController extends GetxController with BaseControllerMixin {
|
||||
// 根据登录状态和登录渠道返回不同的首页
|
||||
Widget getHomePage() {
|
||||
if (StorageService.to.isLoggedIn) {
|
||||
// 检查是否同意过隐私政策,只有同意后才初始化推送
|
||||
if (StorageService.to.isPrivacyAgreed) {
|
||||
requestPermission();
|
||||
initAliyunPush();
|
||||
addPushCallback();
|
||||
}
|
||||
|
||||
if (StorageService.to.loginChannel == LoginChannel.station) {
|
||||
return B_BaseWidgetsPage();
|
||||
} else if (StorageService.to.loginChannel == LoginChannel.driver) {
|
||||
|
||||
Reference in New Issue
Block a user