Commit 7b03f3b9 by 刘鹏

feat: 动态专家主页链接更新

parent 186a94d1
...@@ -3,8 +3,8 @@ package com.yidianling.dynamic.router ...@@ -3,8 +3,8 @@ package com.yidianling.dynamic.router
import android.app.Activity import android.app.Activity
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
import androidx.fragment.app.DialogFragment
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.DialogFragment
import com.ydl.confide.api.IConfideService import com.ydl.confide.api.IConfideService
import com.ydl.course.api.ICourseService import com.ydl.course.api.ICourseService
import com.ydl.ydlcommon.base.config.HttpConfig import com.ydl.ydlcommon.base.config.HttpConfig
...@@ -65,15 +65,15 @@ object DynamicIn { ...@@ -65,15 +65,15 @@ object DynamicIn {
* 获取专家主页url * 获取专家主页url
*/ */
fun getExpertHost(): String { fun getExpertHost(): String {
return HttpConfig.H5_URL + "experts/" return HttpConfig.MH5_URL + "jy/experts/"
} }
fun getShareExpertHost(): String { fun getShareExpertHost(): String {
return HttpConfig.MH5_URL+ "experts/" return HttpConfig.MH5_URL + "experts/"
} }
fun isLogin(): Boolean { fun isLogin(): Boolean {
return getUserService().isLogin()?:false return getUserService().isLogin() ?: false
} }
fun getUserInfo(): UserResponseBean.UserInfo? = getUserService().getUserInfo() fun getUserInfo(): UserResponseBean.UserInfo? = getUserService().getUserInfo()
...@@ -82,7 +82,7 @@ object DynamicIn { ...@@ -82,7 +82,7 @@ object DynamicIn {
return getUserService().loginWayIntent(activity) return getUserService().loginWayIntent(activity)
} }
fun personalInfoIntent(activity: Activity){ fun personalInfoIntent(activity: Activity) {
getAppService().personalInfoIntent(activity) getAppService().personalInfoIntent(activity)
} }
...@@ -90,23 +90,28 @@ object DynamicIn { ...@@ -90,23 +90,28 @@ object DynamicIn {
return getUserService().inputPhoneIntent(activity, smsAction) return getUserService().inputPhoneIntent(activity, smsAction)
} }
fun mainIntent(activity: Activity){ fun mainIntent(activity: Activity) {
getAppService().mainIntent(activity) getAppService().mainIntent(activity)
} }
fun mainIntent(activity: Activity,tab :Int){ fun mainIntent(activity: Activity, tab: Int) {
getAppService().mainIntent(activity,tab,false) getAppService().mainIntent(activity, tab, false)
} }
fun expertSearchIntent(activity: Activity, category: Int, showType: Int, isInitShowHot: Boolean): Intent? { fun expertSearchIntent(
activity: Activity,
category: Int,
showType: Int,
isInitShowHot: Boolean
): Intent? {
return getConsultService().expertSearchIntent(activity, category, showType, isInitShowHot) return getConsultService().expertSearchIntent(activity, category, showType, isInitShowHot)
} }
fun testResultH5(testResultId: Int){ fun testResultH5(testResultId: Int) {
getTestsService().testH5Result(testResultId.toString()) getTestsService().testH5Result(testResultId.toString())
} }
fun testDetailH5(testId: Int){ fun testDetailH5(testId: Int) {
getTestsService().testDetailH5(testId.toString()); getTestsService().testDetailH5(testId.toString());
} }
...@@ -122,7 +127,7 @@ object DynamicIn { ...@@ -122,7 +127,7 @@ object DynamicIn {
return getFMService().getFmId() ?: 0 return getFMService().getFmId() ?: 0
} }
fun rechargeIntent(activity: Activity){ fun rechargeIntent(activity: Activity) {
getAppService().rechargeIntent(activity) getAppService().rechargeIntent(activity)
} }
...@@ -143,23 +148,23 @@ object DynamicIn { ...@@ -143,23 +148,23 @@ object DynamicIn {
return getCourseService().isPlaying() ?: false return getCourseService().isPlaying() ?: false
} }
fun playCourse(){ fun playCourse() {
if (!isCoursePlaying()){ if (!isCoursePlaying()) {
getCourseService().play() getCourseService().play()
} }
} }
fun pauseCourse(){ fun pauseCourse() {
if (isCoursePlaying()){ if (isCoursePlaying()) {
getCourseService().pause() getCourseService().pause()
} }
} }
fun rePlayFM(){ fun rePlayFM() {
getFMService().replay() getFMService().replay()
} }
fun pauseFm(){ fun pauseFm() {
getFMService().pause() getFMService().pause()
} }
...@@ -170,15 +175,16 @@ object DynamicIn { ...@@ -170,15 +175,16 @@ object DynamicIn {
/** /**
* 课程播放页 * 课程播放页
*/ */
fun startCoursePlayPage(activity: Activity){ fun startCoursePlayPage(activity: Activity) {
getCourseService().startCoursePlayPage(activity,1) getCourseService().startCoursePlayPage(activity, 1)
} }
/** /**
* 调用优先使用一键登录,并返回调用时的登录状态, * 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式 * @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @return true:已登录,不触发登录跳转,false:未登录,优先一键登录 * @return true:已登录,不触发登录跳转,false:未登录,优先一键登录
* */ * */
fun loginByOneKeyLogin(context: Context, isOpenDialog: Boolean) :Boolean{ fun loginByOneKeyLogin(context: Context, isOpenDialog: Boolean): Boolean {
return getUserService().loginByOneKeyLogin(context,isOpenDialog) return getUserService().loginByOneKeyLogin(context, isOpenDialog)
} }
} }
\ No newline at end of file
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