Commit 1bead902 authored by shiyl's avatar shiyl

新建判断客户端的工具类

parent 4ba0fe92
package com.yidian.bcommon.sdk
/**
* 客户端类型
*/
enum class ClientType {
MERCHANT_B,
MERCHANT_C
}
package com.yidian.bcommon.sdk
/**
* 判断客户端工具类
*/
object JudgeClientUtils {
/**
* 判断客户端类型
*/
fun judgeClient(packageName: String): ClientType {
return when (packageName) {
"com.cutt.zhiyue.android" -> ClientType.MERCHANT_C
"com.shenghuoquan.business.debug",
"com.shenghuoquan.business" -> ClientType.MERCHANT_B
else -> {
ClientType.MERCHANT_B
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment