Commit 0ab7c85c by guojuxing

超级管理员短信提醒修改

parent 983d54a8
......@@ -5,6 +5,7 @@ import java.util.*;
import com.gic.authcenter.security.core.constant.DataResourceEnum;
import com.gic.authcenter.security.core.dto.AuthcenterUserDetails;
import com.gic.enterprise.constants.Constants;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
......@@ -129,10 +130,10 @@ public class EnterpriseController {
if (result.isSuccess() && UserConstants.CREATE_AUTO == userDTO.getPasswordType().intValue()) {
//发送短信,通知自动生成密码
if (StringUtils.isBlank(userDTO.getPhoneAreaCode())) {
userDTO.setPhoneAreaCode("+86");
userDTO.setPhoneAreaCode(Constants.NATION_CODE);
}
String[] smsArr = new String[] { enterpriseDTO.getEnterpriseName(), userDTO.getPhoneNumber(), password };
ServiceResponse<Void> smsSendResult = smsSendApiService.sendPlatformSms("GICpassword001",
String[] smsArr = new String[] { enterpriseDTO.getEnterpriseName(), password };
ServiceResponse<Void> smsSendResult = smsSendApiService.sendPlatformSms("GICSHHT003",
result.getResult(), userDTO.getPhoneAreaCode(), userDTO.getPhoneNumber(), smsArr);
if (!smsSendResult.isSuccess()) {
LOGGER.warn(smsSendResult.getMessage());
......@@ -285,8 +286,8 @@ public class EnterpriseController {
} else {
LOGGER.warn(enterpriseResult.getMessage());
}
String[] smsArr = new String[] { enterpriseName, userDTO.getPhoneNumber(), autoPassword };
ServiceResponse<Void> smsSendResult = smsSendApiService.sendPlatformSms("GICpassword001", enterpriseId,
String[] smsArr = new String[] { enterpriseName, autoPassword };
ServiceResponse<Void> smsSendResult = smsSendApiService.sendPlatformSms("GICSHHT004", enterpriseId,
userDTO.getPhoneAreaCode(), userDTO.getPhoneNumber(), smsArr);
if (!smsSendResult.isSuccess()) {
LOGGER.warn(smsSendResult.getMessage());
......
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