Commit 7d5642b4 authored by shangying's avatar shangying

sonar问题修改8

parent 72270887
......@@ -56,7 +56,7 @@ public class AESUtil {
*/
public static String encryptAndBase64Encode(byte[] data, String key) {
try {
if (Objects.isNull(key)) {
if (StringUtils.isBlank(key)) {
return null;
}
byte[] raw = key.getBytes(data_encoding);
......
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