fix AES decode

This commit is contained in:
Carl 2021-12-24 12:25:39 +08:00
parent 3b82706132
commit e54245f871
2 changed files with 38 additions and 5 deletions

View File

@ -31,7 +31,7 @@ public class GoodService {
paramMap.put("channelId","15"); paramMap.put("channelId","15");
String sb = SmartHttpUtil.sendPostForm(url+"product/query",paramMap,null); String sb = SmartHttpUtil.sendPostForm(url+"product/query",paramMap,null);
JSONObject jsonObject = JSONObject.parseObject(sb); JSONObject jsonObject = JSONObject.parseObject(sb);
String result = AESUtil.decrypt(jsonObject.getString("data"), AESUtil.KEY); String result = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
return result; return result;
} }
@ -42,7 +42,7 @@ public class GoodService {
paramMap.put("channelId","15"); paramMap.put("channelId","15");
String sb = SmartHttpUtil.sendPostForm(url+"productMaster/query",paramMap,null); String sb = SmartHttpUtil.sendPostForm(url+"productMaster/query",paramMap,null);
JSONObject jsonObject = JSONObject.parseObject(sb); JSONObject jsonObject = JSONObject.parseObject(sb);
String result = AESUtil.decrypt(jsonObject.getString("data"), AESUtil.KEY); String result = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);
return result; return result;
} }
} }

File diff suppressed because one or more lines are too long