REQ-2874: 政务-添加高新区短信渠道
This commit is contained in:
parent
92df5d2fc7
commit
8a9be180a1
@ -26,7 +26,9 @@ import cn.axzo.msg.center.notices.service.response.CodeStatusRes;
|
||||
import cn.axzo.msg.center.notices.service.response.SendCodeRes;
|
||||
import cn.azxo.framework.common.model.CommonResponse;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.alibaba.nacos.common.utils.UuidUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@ -64,6 +66,8 @@ public class MNSNoticesApiImpl implements MNSNoticesApi {
|
||||
BeanUtils.copyProperties(request, mnsRequestDto);
|
||||
log.info("request value={},mnsRequestDto value={}", JSONUtil.toJsonStr(request),JSONUtil.toJsonStr(mnsRequestDto));
|
||||
try {
|
||||
if (StringUtils.isBlank(request.getRequestNo()))
|
||||
request.setRequestNo(UuidUtils.generateUuid());
|
||||
mnsRequestDto.setInternalObj(MnsType.BIZ);
|
||||
messageService.sendMessage(mnsRequestDto);
|
||||
return CommonResponse.success();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user