地质所 沉降监测网建设项目
zmk
2024-05-15 9e3afc6d0fa514f986d3fea40fa23124e6fb5070
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
package com.javaweb.third.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
 
/**
 * 读取代码生成相关配置
 * 
 * @author wujiyue
 */
@Component
@PropertySource(value = { "classpath:third.properties" })
public class ThirdConfig
{
    
    /**
     *腾讯位置服务配置KEY
     */
    public static String  tencentIpKey;
    /**
     * 百度人工智能AK
     */
    public static String baiduAiAk;
 
    /**
     * 百度人工智能SK
     */
    public static String baiduAiSk;
    /**
     * 腾讯验证码服务appId
     */
    public static String  tencentCaptchaAppId;
    /**
     * 腾讯验证码服务appSecretKey
     */
    public static String  tencentCaptchaAppSecretKey;
    /**
     * 乐云短信服务帐号
     */
    public static String  smsLeYunAccount;
    /**
     * 乐云短信服务密码
     */
    public static String  smsLeYunPassword;
 
    /**
     * 百度推送cookie.自行登录百度站长平台后获取响应的cookie
     */
    public static String baiduPushCookie;
    /**
     * 百度推送使用的token
     */
    public static String baiduPushToken;
    public static String baiduPushDomain;
 
 
    @Value("${third.baidu.push.domain}")
    public  void setBaiduPushDomain(String baiduPushDomain) {
        ThirdConfig.baiduPushDomain = baiduPushDomain;
    }
    @Value("${third.baidu.push.token}")
    public  void setBaiduPushToken(String baiduPushToken) {
        ThirdConfig.baiduPushToken = baiduPushToken;
    }
 
    @Value("${third.baidu.push.cookie}")
    public  void setBaiduPushCookie(String baiduPushCookie) {
        ThirdConfig.baiduPushCookie = baiduPushCookie;
    }
 
 
    @Value("${third.tencent.ip_key}")
    public  void setTencentIpKey(String tencentIpKey) {
        ThirdConfig.tencentIpKey = tencentIpKey;
    }
    @Value("${third.baidu.ai.AK}")
    public  void setBaiduAiAk(String baiduAiAk) {
        ThirdConfig.baiduAiAk = baiduAiAk;
    }
    @Value("${third.baidu.ai.SK}")
    public  void setBaiduAiSk(String baiduAiSk) {
        ThirdConfig.baiduAiSk = baiduAiSk;
    }
    @Value("${third.tencent.tencentCaptcha.appId}")
    public  void setTencentCaptchaAppId(String tencentCaptchaAppId) {
        ThirdConfig.tencentCaptchaAppId = tencentCaptchaAppId;
    }
    @Value("${third.tencent.tencentCaptcha.appSecretKey}")
    public  void setTencentCaptchaAppSecretKey(String tencentCaptchaAppSecretKey) {
        ThirdConfig.tencentCaptchaAppSecretKey = tencentCaptchaAppSecretKey;
    }
    @Value("${third.sms.LeYun.account}")
    public  void setSmsLeYunAccount(String smsLeYunAccount) {
        ThirdConfig.smsLeYunAccount = smsLeYunAccount;
    }
    @Value("${third.sms.LeYun.password}")
    public  void setSmsLeYunPassword(String smsLeYunPassword) {
        ThirdConfig.smsLeYunPassword = smsLeYunPassword;
    }
 
    public static String getTencentIpKey() {
        return tencentIpKey;
    }
 
    public static String getBaiduAiAk() {
        return baiduAiAk;
    }
 
    public static String getBaiduAiSk() {
        return baiduAiSk;
    }
 
    public static String getTencentCaptchaAppId() {
        return tencentCaptchaAppId;
    }
 
    public static String getTencentCaptchaAppSecretKey() {
        return tencentCaptchaAppSecretKey;
    }
 
    public static String getSmsLeYunAccount() {
        return smsLeYunAccount;
    }
 
    public static String getSmsLeYunPassword() {
        return smsLeYunPassword;
    }
 
    public static String getBaiduPushCookie() {
        return baiduPushCookie;
    }
 
    public static String getBaiduPushToken() {
        return baiduPushToken;
    }
    public static String getBaiduPushDomain() {
        return baiduPushDomain;
    }
}