2023-12-07 16:12:54 +08:00
|
|
|
package com.jsowell.pile.util;
|
|
|
|
|
|
2024-04-15 15:57:52 +08:00
|
|
|
import com.jsowell.common.util.StringUtils;
|
|
|
|
|
|
2023-12-07 16:12:54 +08:00
|
|
|
/**
|
|
|
|
|
* 运营商工具类
|
|
|
|
|
*/
|
|
|
|
|
public class MerchantUtils {
|
|
|
|
|
|
2024-04-15 15:57:52 +08:00
|
|
|
// 希晓运营商id
|
|
|
|
|
public static final String XIXIAO_MERCHANT_ID = "35";
|
|
|
|
|
|
|
|
|
|
// 是否是希晓运营商
|
|
|
|
|
public static boolean isXiXiaoMerchant(String merchantId) {
|
|
|
|
|
return StringUtils.equals(XIXIAO_MERCHANT_ID, merchantId);
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-15 17:02:50 +08:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @param organizationCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String getOperatorID(String organizationCode) {
|
|
|
|
|
return organizationCode.substring(9, 18);
|
|
|
|
|
}
|
2023-12-07 16:12:54 +08:00
|
|
|
}
|