Commit 464a7a72 by zhanghj

V1.0.0--短信发送url读取配置

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17455 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3e472029
......@@ -35,4 +35,9 @@ public class Constants {
* 短信验证码前缀
*/
public static final String SMS_VERIFY_CODE_PREFIX = "carService.sms.verifyCode";
/**
* 短信url的key
*/
public static final String SMS_SERVER_URL_KEY = "sms.url";
}
......@@ -3,14 +3,14 @@ package com.glsx.publicservice.util;
import java.text.MessageFormat;
import java.util.TreeMap;
import com.glsx.common.utils.HttpUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.util.PropertiesUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSONObject;
import com.glsx.common.utils.HttpUtils;
import com.glsx.publicservice.constants.Constants;
/**
* 短信工具类
......@@ -50,7 +50,7 @@ public class SmsUtil {
// String url = "http://qcdidicb.glsx.net:7060/router";//测试(貌似已经废弃了)
// String url = "http://qcapp.oss.glsx.net:7060/gop-message/router";//测试
String url ="http://qcdidicb.glsx.net:7060/router";
String url = PropertiesUtil.getProperty(Constants.SMS_SERVER_URL_KEY);
logger.info(url);
HttpUtils httpUtils = new HttpUtils();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!