Преглед изворни кода

[fit]极光cleanTags完再把Channel设置

云天逵 пре 7 месеци
родитељ
комит
150c1b136d
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      lib/data/repository/account_repository.dart

+ 1 - 0
lib/data/repository/account_repository.dart

@@ -247,6 +247,7 @@ class AccountRepository {
     DailyLimiterUtil.clearDailyLimitData("SurpriseDialog");
     // 退出登录,清除极光推送的标签
     JpushHelper.getInstance().cleanTags();
+    JpushHelper.getInstance().setTags(tag: [getChannelName()]);
     // 退出登录,通知键盘刷新数据
     _notifyKeyboardPluginRefreshData();