admin
2020-05-06 24a8d17e007545f7426c48352109aa1a9c6587ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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;
    }
    
    
}