【修复】日志记录表DEV_LOG缺少REQ_METHOD(请求方式)

【修复】DevSmsAliyunUtil工具类校验问题
pull/130/head
wangzhengshi 2023-07-09 11:24:24 +08:00
parent f04cfc3da2
commit 3c3cd81968
2 changed files with 3 additions and 2 deletions

View File

@ -53,6 +53,7 @@ public class DevLogUtil {
devLog.setExeStatus(DevLogExeStatusEnum.SUCCESS.getValue());
devLog.setClassName(joinPoint.getTarget().getClass().getName());
devLog.setMethodName(joinPoint.getSignature().getName());
devLog.setReqMethod(request.getMethod());
devLog.setReqUrl(request.getRequestURI());
devLog.setParamJson(CommonJoinPointUtil.getArgsJsonString(joinPoint));
devLog.setResultJson(resultJson);

View File

@ -61,14 +61,14 @@ public class DevSmsAliyunUtil {
/* accessKeySecret */
String accessKeySecret = devConfigApi.getValueByKey(SNOWY_SMS_ALIYUN_ACCESS_KEY_SECRET_KEY);
if(ObjectUtil.isEmpty(accessKeyId)) {
if(ObjectUtil.isEmpty(accessKeySecret)) {
throw new CommonException("阿里云短信操作客户端未正确配置accessKeySecret为空");
}
/* endpoint */
String endpoint = devConfigApi.getValueByKey(SNOWY_SMS_ALIYUN_END_POINT_KEY);
if(ObjectUtil.isEmpty(accessKeyId)) {
if(ObjectUtil.isEmpty(endpoint)) {
throw new CommonException("阿里云短信操作客户端未正确配置endpoint为空");
}