[M2] 乘客屏兼容获取司机端sn为空的情况
This commit is contained in:
@@ -324,6 +324,9 @@ class PM2DrivingModel private constructor() {
|
||||
}
|
||||
|
||||
override fun onFail(code: Int, msg: String?) {
|
||||
if (PM2ServiceManager.driverAppSn.isEmpty()){
|
||||
return
|
||||
}
|
||||
if (code == 1003) {
|
||||
routesResult = null
|
||||
isGoingToNextStation = false
|
||||
|
||||
@@ -25,7 +25,7 @@ object PM2ServiceManager {
|
||||
* 获取Bus司机端的sn
|
||||
* @return
|
||||
*/
|
||||
private val driverAppSn: String
|
||||
public val driverAppSn: String
|
||||
get() = getServerToken()
|
||||
// get() = "X2020220425Q466X1F"
|
||||
|
||||
@@ -45,7 +45,7 @@ object PM2ServiceManager {
|
||||
driverAppSn
|
||||
)
|
||||
).transformTry()
|
||||
.subscribe(OchCommonSubscribeImpl(context, callback, "queryDriverSiteByCoordinate"))
|
||||
.subscribe(OchCommonSubscribeImpl(context, callback, "queryDriverSiteByCoordinate=sn =$driverAppSn"))
|
||||
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ object PM2ServiceManager {
|
||||
driverAppSn
|
||||
)
|
||||
.transformTry()
|
||||
.subscribe(OchCommonSubscribeImpl(context, callback, "queryDriverOperationStatus"))
|
||||
.subscribe(OchCommonSubscribeImpl(context, callback, "queryDriverOperationStatus=sn =$driverAppSn"))
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user