package com.yeshi.fanli.util;
|
|
import java.io.IOException;
|
import java.util.HashMap;
|
import java.util.Map;
|
import java.util.Properties;
|
|
public class PropertiesUtil {
|
|
private static final Map<String,String> map = new HashMap<String,String>();
|
|
static{
|
Properties prop = new Properties();
|
try {
|
prop.load(PropertiesUtil.class.getClassLoader().getResourceAsStream("app.properties"));
|
map.put("environment",prop.getProperty("environment"));
|
|
//XMPush
|
map.put("xiaomi_f_android_app_key", new String(prop.getProperty("XIAOMI_FANLI_APPKEY_ANDROID")));
|
map.put("xiaomi_f_android_app_secert", new String(prop.getProperty("XIAOMI_FANLI_APPSECRET_ANDROID")));
|
|
//HWPush
|
/*map.put("hw_f_android_app_key", new String(prop.getProperty("HW_FANLI_APPKEY_ANDROID")));
|
map.put("hw_f_android_app_secert", new String(prop.getProperty("HW_FANLI_APPSECRET_ANDROID")));*/
|
|
map.put("f_access_id_android", new String(prop.getProperty("FAN_ACCESS_ID_ANDROID").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("f_secret_key_android", new String(prop.getProperty("FAN_SECRET_KEY_ANDROID").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("f_access_id_ios", new String(prop.getProperty("FAN_ACCESS_ID_IOS").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("f_secret_key_ios", new String(prop.getProperty("FAN_SECRET_KEY_IOS").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_1_title", new String(prop.getProperty("HONGBAO_TYPE_1_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_1_info", new String(prop.getProperty("HONGBAO_TYPE_1_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_2_title", new String(prop.getProperty("HONGBAO_TYPE_2_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_2_info", new String(prop.getProperty("HONGBAO_TYPE_2_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_3_title", new String(prop.getProperty("HONGBAO_TYPE_3_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_3_info", new String(prop.getProperty("HONGBAO_TYPE_3_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_4_title", new String(prop.getProperty("HONGBAO_TYPE_4_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_4_info", new String(prop.getProperty("HONGBAO_TYPE_4_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_5_title", new String(prop.getProperty("HONGBAO_TYPE_5_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_5_info", new String(prop.getProperty("HONGBAO_TYPE_5_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_6_title", new String(prop.getProperty("HONGBAO_TYPE_6_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_6_info", new String(prop.getProperty("HONGBAO_TYPE_6_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_7_title", new String(prop.getProperty("HONGBAO_TYPE_7_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_7_info", new String(prop.getProperty("HONGBAO_TYPE_7_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("hongbao_type_20_title", new String(prop.getProperty("HONGBAO_TYPE_20_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_20_info", new String(prop.getProperty("HONGBAO_TYPE_20_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
|
map.put("hongbao_type_21_title", new String(prop.getProperty("HONGBAO_TYPE_21_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_21_info", new String(prop.getProperty("HONGBAO_TYPE_21_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
|
map.put("hongbao_type_22_title", new String(prop.getProperty("HONGBAO_TYPE_22_TITLE").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("hongbao_type_22_info", new String(prop.getProperty("HONGBAO_TYPE_22_INFO").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("fan_title", new String(prop.getProperty("fan_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("fan_content", new String(prop.getProperty("fan_content").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("user_title", new String(prop.getProperty("user_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("user_content", new String(prop.getProperty("user_content").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("sale_title", new String(prop.getProperty("sale_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("sale_content", new String(prop.getProperty("sale_content").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("share_title", new String(prop.getProperty("share_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("share_content", new String(prop.getProperty("share_content").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("service_title", new String(prop.getProperty("service_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("service_content", new String(prop.getProperty("service_content").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("extract_apply_title", new String(prop.getProperty("extract_apply_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("extract_apply_content", new String(prop.getProperty("extract_apply_content").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("extract_fail_title", new String(prop.getProperty("extract_fail_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("extract_fail_content1", new String(prop.getProperty("extract_fail_content1").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("extract_fail_content2", new String(prop.getProperty("extract_fail_content2").getBytes("ISO-8859-1"),"UTF-8"));
|
|
map.put("extract_success_title", new String(prop.getProperty("extract_success_title").getBytes("ISO-8859-1"),"UTF-8"));
|
map.put("extract_success_content", new String(prop.getProperty("extract_success_content").getBytes("ISO-8859-1"),"UTF-8"));
|
|
} catch (IOException e) {
|
e.printStackTrace();
|
}
|
}
|
|
public static Map<String, String> getMap() {
|
return map;
|
}
|
|
|
}
|