| | |
| | |
|
| | | if (znxConfig == null) {
|
| | | Properties ps = org.yeshi.utils.PropertiesUtil
|
| | | .getProperties(TaoBaoUtil.class.getClassLoader().getResourceAsStream("znx_msg.properties"));
|
| | | .getProperties(TaoBaoUtil.class.getClassLoader().getResourceAsStream("push_msg.properties"));
|
| | | znxConfig = (ZNXConfig) MapUtil.parseMap(ZNXConfig.class, ps);
|
| | | }
|
| | |
|
| | |
| | | default:// 其他类型
|
| | | return "";
|
| | | }
|
| | | }
|
| | |
|
| | | public static int getPlatformCode(String platform) {
|
| | | if ("android".equalsIgnoreCase(platform))
|
| | | return 1;
|
| | | else if ("ios".equalsIgnoreCase(platform))
|
| | | return 2;
|
| | | else
|
| | | return 0;// 未知
|
| | | }
|
| | | }
|