[fea]
埋点参数变更
This commit is contained in:
yakunyang
2024-06-12 16:39:58 +08:00
parent 507e6ae642
commit b4805e2fb8
3 changed files with 55 additions and 35 deletions

View File

@@ -284,10 +284,7 @@ object AppIdentityModeUtils {
return false
}
@JvmStatic
fun getProduct(appIdentityMode: String): Product {
val (bussness, _, _) = getInfo(appIdentityMode)
return when (bussness) {
@@ -299,9 +296,39 @@ object AppIdentityModeUtils {
else -> Product.NONE
}
}
@JvmStatic
fun getRole(appIdentityMode: String): Role {
val (_, role, _) = getInfo(appIdentityMode)
return when (role) {
DRIVER -> Role.Driver
PASSENGER -> Role.PASSENGER
else -> Role.NONE
}
}
@JvmStatic
fun getCarType(appIdentityMode: String): CarType {
val (_, _, carType) = getInfo(appIdentityMode)
return when (carType) {
B1 -> CarType.B1
B2 -> CarType.B2
C1 -> CarType.C1
M1 -> CarType.M1
T1T2 -> CarType.T1T2
else -> CarType.NONE
}
}
enum class Product {
NONE, BUS, TAXI, SWEEPER, SHUTTLE, CHARTER
}
enum class Role {
NONE, Driver, PASSENGER
}
enum class CarType {
NONE, B1, B2, C1, M1, T1T2,
}
}