1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- package com.iamberry.rst.util;
- import java.io.InputStream;
- import java.util.Properties;
- public class SmsConfig {
- public static String SINA_IP_URL = "";
- public static String MASTERSECRET="";
- public static String APPKEY="";
- public static String CDN_URL="";
- public static String BASE_URL=""; //头像前缀
- /** 云片请求地址 */
- public static String INTER_SMS_URL="";
- /** 短信验证码模板 */
- public static String INTER_SMS_TEXT="";
- /** 云片key */
- public static String INTER_SMS_KEY="";
- /** 确认短信验证码模板 */
- public static String CONFIRM_TEXT="";
- /** 驳回模板 */
- public static String REJECTED_TEXT="";
- /** 通过模板 */
- public static String THROUGH_TEXT="";
- /** 通知发货模板 */
- public static String DELIVERY_TEXT="";
- /** 通知发送滤芯物流短信 */
- public static String SEND_NOTICE="";
- /** 通知发送滤芯短信 */
- public static String SEND_NOTICE_INFORM="";
- /** 通知发送滤芯短信2 */
- public static String SEND_NOTICE_INFORM2="";
- /* 发送邮寄信息 -- 美国watero */
- public static String SEND_PRODUCT_SMS_WATERO="";
- /* 发送邮寄信息 -- 上朵 */
- public static String SEND_PRODUCT_SMS_SHANGDUO="";
- /* 发送邮寄信息 -- 优尼雅 */
- public static String SEND_PRODUCT_SMS_YULIA="";
- /* 发送问题回复 -- 美国watero */
- public static String SEND_PRODUCT_SEND_WATERO="";
- /* 发送问题回复 -- 上朵 */
- public static String SEND_PRODUCT_SEND_SHANGDUO="";
- /* 发送问题回复 -- 优尼雅 */
- public static String SEND_PRODUCT_SEND_YULIA="";
- /* 发送发货提醒 -- 美国watero */
- public static String RELATION_SEND_WATERO="";
- /* 发送发货提醒 -- 上朵 */
- public static String RELATION_SEND_SHANGDUO="";
- /* 发送发货提醒 -- 优尼雅 */
- public static String RELATION_SEND_YULIA="";
- static {
- Properties pro = new Properties();
- InputStream in = SmsConfig.class.getClassLoader().getResourceAsStream("platform.properties");
- try {
- pro.load(in);
- SINA_IP_URL = pro.getProperty("SINA_IP_URL");
- MASTERSECRET=pro.getProperty("master_secret");
- APPKEY=pro.getProperty("appkey");
- CDN_URL=pro.getProperty("cdnUrl");
- BASE_URL=pro.getProperty("base_url");
- INTER_SMS_URL=pro.getProperty("INTER_SMS_URL");
- CONFIRM_TEXT=pro.getProperty("CONFIRM_TEXT");
- REJECTED_TEXT=pro.getProperty("REJECTED_TEXT");
- INTER_SMS_KEY=pro.getProperty("INTER_SMS_KEY");
- THROUGH_TEXT=pro.getProperty("THROUGH_TEXT");
- DELIVERY_TEXT=pro.getProperty("DELIVERY_TEXT");
- SEND_NOTICE=pro.getProperty("SEND_NOTICE");
- SEND_NOTICE_INFORM=pro.getProperty("SEND_NOTICE_INFORM");
- SEND_NOTICE_INFORM2=pro.getProperty("SEND_NOTICE_INFORM2");
- SEND_PRODUCT_SMS_WATERO=pro.getProperty("SEND_PRODUCT_SMS_WATERO");
- SEND_PRODUCT_SMS_SHANGDUO=pro.getProperty("SEND_PRODUCT_SMS_SHANGDUO");
- SEND_PRODUCT_SMS_YULIA=pro.getProperty("SEND_PRODUCT_SMS_YULIA");
- SEND_PRODUCT_SEND_WATERO=pro.getProperty("SEND_PRODUCT_SEND_WATERO");
- SEND_PRODUCT_SEND_SHANGDUO=pro.getProperty("SEND_PRODUCT_SEND_SHANGDUO");
- SEND_PRODUCT_SEND_YULIA=pro.getProperty("SEND_PRODUCT_SEND_YULIA");
- RELATION_SEND_WATERO=pro.getProperty("RELATION_SEND_WATERO");
- RELATION_SEND_SHANGDUO=pro.getProperty("RELATION_SEND_SHANGDUO");
- RELATION_SEND_YULIA=pro.getProperty("RELATION_SEND_YULIA");
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
|