Authored by Amos_sdy

市场单独的短信子账号

... ... @@ -53,6 +53,12 @@ public class XWSendSMSServiceImpl implements ISendSMSService {
}
log.info("sendSMS with mobile list.size={}, content={}", mobileList.size(), content);
// 判断如果是市场渠道发的短信,使用市场子账号
if (StringUtils.equals(params.get("sendScene"), "MARKET_GENERAL_SCENE")) {
smsName = "market";
smsPwd = "Market2017";
}
// 判断是否需要分页调用
int size = mobileList.size();
List<String> successList = new ArrayList<String>();
... ... @@ -82,7 +88,7 @@ public class XWSendSMSServiceImpl implements ISendSMSService {
private List<String> immediateSendSMS(List<String> mobileList, String content) {
log.info("immediateSendSMS with mobile list.size={}, content={}", mobileList.size(), content);
Account ac = new Account(smsName, smsPwd);//
log.info("sms acct name is[{}]", smsName);
PostMsg pm = new PostMsg();
pm.getCmHost().setHost("211.147.239.62", 20506);// 设置网关的IP和port,用于发送信息
pm.getWsHost().setHost("211.147.239.62", 20507);// 设置网关的
... ...