Commit c282e42e authored by mengcuiguang's avatar mengcuiguang

代码优化

parent e23ef5e8
...@@ -456,12 +456,12 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR ...@@ -456,12 +456,12 @@ class MainFragment : LazyLoadBaseFragment(), HomeView, View.OnClickListener, OnR
override fun getSoltVedioSuc(data: IndexList?) { override fun getSoltVedioSuc(data: IndexList?) {
val firstVedio = AppPreferencesManager.get().getBoolean(Constant.IS_FIRST_VEDIO, true) val firstVedio = AppPreferencesManager.get().getBoolean(Constant.IS_FIRST_VEDIO, true)
if (data != null && data.vedioMsg != null && firstVedio) { if (data != null && data.vedioMsg != null && firstVedio) {
// 本地判断 匹配用户只进入一次指定集
AppPreferencesManager.get().put(Constant.IS_FIRST_VEDIO, false) AppPreferencesManager.get().put(Constant.IS_FIRST_VEDIO, false)
LocalVedioManager.startVedioDetailActivityForType(requireActivity(), data.vedioMsg) LocalVedioManager.startVedioDetailActivityForType(requireActivity(), data.vedioMsg)
} else { } else {
// 非匹配用户 判断是否进入vip页面
if (UserManager.getInstance().newFlag && !UserManager.getInstance().vipFlag) { if (UserManager.getInstance().newFlag && !UserManager.getInstance().vipFlag) {
// homePresenter.getRecommendVedio()
val bundle = Bundle() val bundle = Bundle()
bundle.putBoolean(VipActivity.IS_MAIN, true) bundle.putBoolean(VipActivity.IS_MAIN, true)
readyGo(VipActivity::class.java, bundle) readyGo(VipActivity::class.java, bundle)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment