mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 04:37:46 +08:00
🎨 优化点代码
This commit is contained in:
parent
1b193e3070
commit
06aaacce65
@ -50,14 +50,13 @@ public class BeanUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
field.setAccessible(isAccessible);
|
field.setAccessible(isAccessible);
|
||||||
} catch (SecurityException | IllegalArgumentException
|
} catch (SecurityException | IllegalArgumentException | IllegalAccessException e) {
|
||||||
| IllegalAccessException e) {
|
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!requiredFields.isEmpty()) {
|
if (!requiredFields.isEmpty()) {
|
||||||
String msg = "必填字段 " + requiredFields + " 必须提供值";
|
String msg = String.format("必填字段【%s】必须提供值!", requiredFields);
|
||||||
log.debug(msg);
|
log.debug(msg);
|
||||||
throw new WxErrorException(WxError.builder().errorMsg(msg).build());
|
throw new WxErrorException(WxError.builder().errorMsg(msg).build());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user