feat(server): 消息中心告警优化
https://jira.axzo.cn/browse/REQ-1248 背景: 消息中心的异常拦截器未生效导致业务异常告警等为ERROR 修改: 简单处理的方案:在相关的接口层去try-catch异常,并转为正常的数据模型 影响: 1、获取验证码状态接口 2、发送短信接口
This commit is contained in:
parent
937942a1f0
commit
303b2c1202
@ -56,6 +56,7 @@ public class MNSNoticesApiImpl implements MNSNoticesApi {
|
||||
MnsRequestDto mnsRequestDto=new MnsRequestDto();
|
||||
BeanUtils.copyProperties(request, mnsRequestDto);
|
||||
log.info("request value={},mnsRequestDto value={}", JSONUtil.toJsonStr(request),JSONUtil.toJsonStr(mnsRequestDto));
|
||||
// TODO: [cold_blade] 需要try-catch异常
|
||||
messageService.sendMessage(mnsRequestDto);
|
||||
return CommonResponse.success();
|
||||
}
|
||||
@ -80,6 +81,7 @@ public class MNSNoticesApiImpl implements MNSNoticesApi {
|
||||
public CommonResponse<MnsCodeStatusRes> getPhoneCodeStatus(@RequestBody @Valid MnsCodeStatusReq req) {
|
||||
CodeStatusReq request=new CodeStatusReq();
|
||||
BeanUtils.copyProperties(req,request);
|
||||
// TODO: [cold_blade] 需要try-catch异常
|
||||
CodeStatusRes phoneCodeStatus = smsService.getPhoneCodeStatus(request);
|
||||
MnsCodeStatusRes result=new MnsCodeStatusRes();
|
||||
BeanUtils.copyProperties(phoneCodeStatus,result);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user