[6.4.4]
[fea] 埋点参数变更
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user