修改短信部分

parent 408b53a5
...@@ -17,6 +17,8 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -17,6 +17,8 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
/** /**
* @author mengfan.feng * @author mengfan.feng
* @time 2015-07-25 18:47 * @time 2015-07-25 18:47
...@@ -53,7 +55,7 @@ public class SmsServiceImpl implements ISmsService { ...@@ -53,7 +55,7 @@ public class SmsServiceImpl implements ISmsService {
try { try {
MsgParams msgParams = MsgParams msgParams =
new MsgParams(Collections.singletonList(2), phoneNo, "1", "24", Collections.emptyList()); new MsgParams(Collections.singletonList(2), phoneNo, "1", "24", Collections.emptyList());
smsSender.sendMsg(msgParams); getSmsSender().sendMsg(msgParams);
//smsSender.sendAndForget(new SendAndForgetMsg(Collections.emptyList(), "24", "1", phoneNo)); //smsSender.sendAndForget(new SendAndForgetMsg(Collections.emptyList(), "24", "1", phoneNo));
log.info("注册完成,发送短信, phoneNo:{}", phoneNo); log.info("注册完成,发送短信, phoneNo:{}", phoneNo);
} catch (Exception e) { } catch (Exception e) {
...@@ -69,7 +71,7 @@ public class SmsServiceImpl implements ISmsService { ...@@ -69,7 +71,7 @@ public class SmsServiceImpl implements ISmsService {
} }
MsgParams msgParams = new MsgParams(Collections.singletonList(2), phoneNo, "1", contentId, MsgParams msgParams = new MsgParams(Collections.singletonList(2), phoneNo, "1", contentId,
Collections.emptyList()); Collections.emptyList());
smsSender.sendMsg(msgParams); getSmsSender().sendMsg(msgParams);
log.info("注册完成,发送短信, phoneNo:{}", phoneNo); log.info("注册完成,发送短信, phoneNo:{}", phoneNo);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
...@@ -125,4 +127,5 @@ public class SmsServiceImpl implements ISmsService { ...@@ -125,4 +127,5 @@ public class SmsServiceImpl implements ISmsService {
} }
return StringUtils.equals(code, smsVerificationCode); return StringUtils.equals(code, smsVerificationCode);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment