mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 10:47:16 +08:00
1.修复日志记录表DEV_LOG缺少REQ_METHOD(请求方式)
2.修复DevSmsAliyunUtil工具类校验问题
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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为空");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user