|
|
@@ -465,7 +465,7 @@ class SplashActivity : BaseActivity(){
|
|
|
*/
|
|
|
//检测车辆是否绑定
|
|
|
splashViewmodel.eqCarliveData.observe(this){res->
|
|
|
- if (res == "20000") {
|
|
|
+ if (res == "20000") {//已绑定
|
|
|
ajaxInfo(getString(R.string.detection_map)+"....",null)
|
|
|
//本地如果没有地图则下载地图
|
|
|
val mapFile = File(getExternalFilesDir(null), region + ".map")
|
|
|
@@ -479,6 +479,9 @@ class SplashActivity : BaseActivity(){
|
|
|
Log.i(TAG, "eqCarliveData: 进入游戏未安装检测:"+mapFile.path)
|
|
|
splashViewmodel.findGameByNoInstall(deviceSN)
|
|
|
}
|
|
|
+ }else if(res == "20001")//未绑定
|
|
|
+ {
|
|
|
+ ajaxInfo(getString(R.string.unbound_vehicle)+"....",null)
|
|
|
}
|
|
|
}
|
|
|
}
|