mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-08 16:57:09 +08:00
chore: 优化部分代码格式和注释
This commit is contained in:
@@ -18,7 +18,6 @@ package top.continew.starter.idempotent.aop;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
@@ -98,7 +97,7 @@ public class IdempotentAspect {
|
||||
String key = idempotent.key();
|
||||
if (CharSequenceUtil.isNotBlank(key)) {
|
||||
Object eval = ExpressionUtils.eval(key, target, method, args);
|
||||
if (ObjectUtil.isNull(eval)) {
|
||||
if (eval == null) {
|
||||
throw new IdempotentException("幂等 Key 解析错误");
|
||||
}
|
||||
key = Convert.toStr(eval);
|
||||
|
Reference in New Issue
Block a user