[6.7.0][接口] refactor: 将鹰眼base接口和och 接口根据调用方法区分开;

This commit is contained in:
aibingbing
2024-09-24 11:53:31 +08:00
parent 75acdffb99
commit e94083f1fd
7 changed files with 225 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.facade.annotation.Route
import com.mogo.eagle.core.data.config.FunctionBuildConfig
import com.mogo.eagle.core.data.enums.Carmodel
import com.mogo.eagle.core.function.call.och.CallerOchFunctionCallManager
import com.mogo.eagle.core.function.call.och.CallerEagleBaseFunctionCall4OchManager
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import com.mogo.eagle.core.utilcode.util.UiThreadHandler
@@ -152,8 +152,8 @@ class LoginProvider : LoginService {
this.loginInfo = loginInfo
}
CallerOchFunctionCallManager.setOchCarModel(Carmodel.getCarModelFromServerName(loginInfo.carModel))
CallerOchFunctionCallManager.setOchPlateNumber(loginInfo.plateNumber)
CallerEagleBaseFunctionCall4OchManager.setOchCarModel(Carmodel.getCarModelFromServerName(loginInfo.carModel))
CallerEagleBaseFunctionCall4OchManager.setOchPlateNumber(loginInfo.plateNumber)
}

View File

@@ -1,17 +1,18 @@
package com.mogo.och.common.module.manager.transform
import com.mogo.eagle.core.function.api.och.IOchCommonFunctionCall
import com.mogo.eagle.core.function.api.och.IOchBizFunctionCall4Eagle
import com.mogo.eagle.core.function.call.base.CallerBase
import com.mogo.eagle.core.function.call.och.CallerOchBizFunctionCall4EagleManager
object OchTransform : CallerBase<OchTransformDispatch>(),IOchCommonFunctionCall {
object OchTransform : CallerBase<OchTransformDispatch>(), IOchBizFunctionCall4Eagle {
init {
CallerOchBizFunctionCall4EagleManager.setOchBizFunctionCall4EagleInstance(this)
}
override fun logout() {
M_LISTENERS.forEach {
it.value.logout()
}
}
}