[m1]
[适配+部分页面]
This commit is contained in:
yangyakun
2023-01-30 12:08:59 +08:00
parent a9291ac5bc
commit b9213fee35
7 changed files with 80 additions and 28 deletions

View File

@@ -28,6 +28,7 @@ object AppIdentityModeUtils {
// 车型
private const val M1 = "M1"
private const val M2 = "M2"
@@ -108,6 +109,14 @@ object AppIdentityModeUtils {
}
return false
}
@JvmStatic
fun isM2(appIdentityMode: String): Boolean {
val (_, _, model) = getInfo(appIdentityMode)
if (model.isNotEmpty()) {
return model == M2
}
return false
}
/**
* 是否是 清扫车(这里不细分具体是:司机、乘客等类型)