|
@@ -27,7 +27,7 @@ public class EncryptConverter implements AttributeConverter<String, String> {
|
|
|
public String convertToEntityAttribute(String s) {
|
|
public String convertToEntityAttribute(String s) {
|
|
|
if (StringUtils.isNotBlank(s) && s.startsWith("*")) {
|
|
if (StringUtils.isNotBlank(s) && s.startsWith("*")) {
|
|
|
try {
|
|
try {
|
|
|
- return AESEncryptUtil.decrypt(s);
|
|
|
|
|
|
|
+ return AESEncryptUtil.decrypt(s.substring(1));
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|