修改短信部分

parent 408b53a5
......@@ -17,6 +17,8 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
/**
* @author mengfan.feng
* @time 2015-07-25 18:47
......@@ -53,7 +55,7 @@ public class SmsServiceImpl implements ISmsService {
try {
MsgParams msgParams =
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));
log.info("注册完成,发送短信, phoneNo:{}", phoneNo);
} catch (Exception e) {
......@@ -69,7 +71,7 @@ public class SmsServiceImpl implements ISmsService {
}
MsgParams msgParams = new MsgParams(Collections.singletonList(2), phoneNo, "1", contentId,
Collections.emptyList());
smsSender.sendMsg(msgParams);
getSmsSender().sendMsg(msgParams);
log.info("注册完成,发送短信, phoneNo:{}", phoneNo);
} catch (Exception e) {
e.printStackTrace();
......@@ -125,4 +127,5 @@ public class SmsServiceImpl implements ISmsService {
}
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