Commit c97c7204 authored by qinxunjia's avatar qinxunjia

修改配置文件

parent b33ac3d7
......@@ -23,7 +23,13 @@ public class DmHubResponse implements Serializable {
}
public DmHubResponse(ResponseCode responseCode) {
this.code = responseCode.getCode();
if (ResponseCode.SUCCESS.equals(responseCode)) {
this.code = responseCode.getCode();
} else {
error = new JSONObject();
error.put("errorCode", responseCode.getCode());
error.put("message", responseCode.getMsg());
}
}
public String getCode() {
......
......@@ -87,7 +87,6 @@ public class MessageServiceImpl implements MessageService {
info.setParams(params);
boolean insert = smsTemplateService.insert(info);
if (!insert) {
//TODO 发送告警
log.error("模板插入DB异常:【{}】", JSONObject.toJSONString(info));
return new DmHubResponse(ResponseCode.SYSTEM_ERROR);
}
......@@ -96,7 +95,6 @@ public class MessageServiceImpl implements MessageService {
responseDTO = new DmHubResponse(ResponseCode.SYSTEM_ERROR);
}
return responseDTO;
}
......
......@@ -41,3 +41,9 @@ system:
tokenUrl: https://api.convertlab.com/security/accesstoken
report: https://api.convertlab.com/v1/sms/report
logging:
level: debug
level.com.bgy: debug # 单独指定包下的日志级别
config: classpath:logback-spring.xml
file:
path: logs.log
......@@ -42,3 +42,9 @@ system:
tokenUrl: https://api.convertlab.com/security/accesstoken
report: https://api.convertlab.com/v1/sms/report
logging:
level: error
level.com.bgy: error # 单独指定包下的日志级别
config: classpath:logback-spring.xml
file:
path: logs.log
\ No newline at end of file
......@@ -40,3 +40,10 @@ system:
applicationKey: 4017078e9dfd593b2d9a0ede58eff589644fbe50
tokenUrl: https://api.convertlab.com/security/accesstoken
report: https://api.convertlab.com/v1/sms/report
logging:
level: debug
level.com.bgy: debug # 单独指定包下的日志级别
config: classpath:logback-spring.xml
file:
path: logs.log
\ No newline at end of file
......@@ -14,12 +14,4 @@ mybatis-plus:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.bgy.sms.repository.domain
configuration:
map-underscore-to-camel-case: true
logging:
level: debug
level.com.bgy: debug # 单独指定包下的日志级别
config: classpath:logback-spring.xml
file:
path: logs.log
\ No newline at end of file
map-underscore-to-camel-case: true
\ No newline at end of file
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