Commit 7b03f3b9 by 刘鹏

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

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