Commit 608b937b authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 7ff96ca2
...@@ -136,6 +136,7 @@ android { ...@@ -136,6 +136,7 @@ android {
} }
} }
} }
dependencies { dependencies {
...@@ -226,3 +227,5 @@ dependencies { ...@@ -226,3 +227,5 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
} }
...@@ -99,25 +99,25 @@ object LocalVedioManager { ...@@ -99,25 +99,25 @@ object LocalVedioManager {
isPlayNext: Boolean = false, isPlayNext: Boolean = false,
isThirdId: Boolean = false isThirdId: Boolean = false
) { ) {
if (data?.createType == 1) { // if (data?.createType == 1) {
//自有短剧 //自有短剧
val bundle = Bundle() val bundle = Bundle()
bundle.putString(Constant.VEDIO_BEAN, JsonUtil.toJson(data)) bundle.putString(Constant.VEDIO_BEAN, JsonUtil.toJson(data))
bundle.putBoolean(Constant.VEDIO_NEXT, isPlayNext) bundle.putBoolean(Constant.VEDIO_NEXT, isPlayNext)
bundle.putBoolean(Constant.VEDIO_THIRD, isThirdId) bundle.putBoolean(Constant.VEDIO_THIRD, isThirdId)
readyGo(activity, TxVideoActivity::class.java, bundle) readyGo(activity, TxVideoActivity::class.java, bundle)
} else if (data?.createType == 3) { // } else if (data?.createType == 3) {
//推荐短剧 // //推荐短剧
val bundle = Bundle() // val bundle = Bundle()
bundle.putString(Constant.VEDIO_BEAN, JsonUtil.toJson(data)) // bundle.putString(Constant.VEDIO_BEAN, JsonUtil.toJson(data))
readyGo(activity, NewTxVideoActivity::class.java, bundle) // readyGo(activity, NewTxVideoActivity::class.java, bundle)
} else { // } else {
requestDrama(activity, data) // requestDrama(activity, data)
} // }
//
if (!UserManager.getInstance().vipFlag) { // if (!UserManager.getInstance().vipFlag) {
ExpressManager.instance.preLoadAd() // ExpressManager.instance.preLoadAd()
} // }
} }
// 请求穿山甲数据 // 请求穿山甲数据
......
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