|
@@ -7,6 +7,9 @@ import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.jfinal.core.Controller;
|
|
|
import com.jfinal.kit.PropKit;
|
|
|
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
|
|
@@ -53,12 +56,14 @@ public class ViewController extends Controller {
|
|
|
String IV = "0000000000000000";
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
String aesEncryptStr = this.getPara("data");
|
|
|
- String aesDecodeStr = AESUtils.aesDecodeStr(aesEncryptStr, PropKit.get("nw_key") ,IV);
|
|
|
-// String aesEncryptStr2 = AESUtils.aesEncryptStr(aesDecodeStr, "27c78f49ba635c90a4a44af98a76e313",IV);
|
|
|
-// String aesEncryptStr3 = dService.getExamList(aesEncryptStr2);
|
|
|
-// String aesDecodeSt4 = AESUtils.aesDecodeStr(aesEncryptStr3, "27c78f49ba635c90a4a44af98a76e313" ,IV);
|
|
|
-// String aesDecodeSt5 = AESUtils.aesEncryptStr(aesDecodeSt4, PropKit.get("nw_key"),IV);
|
|
|
- this.renderText(aesDecodeStr);
|
|
|
+ String aesDecodeStr = AESUtils.aesDecodeStr("Q1R3PhZX3/h9Mue5L5kmupSKW24KiGag5yst5k0a0YtVSC5mnenePI5LLZ4GigdpH2RUv/NHX1Kjhnzt1eQpYBgGS5t9Ki63Vc5E/R3T6TnrXfPyeIv1K+HgaCai3sc0", "2c1db8e7eee65eeeebacb0afbec37096" ,IV);
|
|
|
+ String aesEncryptStr2 = AESUtils.aesEncryptStr(aesDecodeStr, "27c78f49ba635c90a4a44af98a76e313",IV);
|
|
|
+ String aesEncryptStr3 = dService.getExamList(aesEncryptStr2);
|
|
|
+ JSONObject jsonObject = JSON.parseObject(aesEncryptStr3);
|
|
|
+
|
|
|
+ String aesDecodeSt4 = AESUtils.aesDecodeStr(jsonObject.getString("data"), "27c78f49ba635c90a4a44af98a76e313" ,IV);
|
|
|
+ String aesDecodeSt5 = AESUtils.aesEncryptStr(aesDecodeSt4, PropKit.get("nw_key"),IV);
|
|
|
+ this.renderText(aesDecodeSt5);
|
|
|
} catch (Exception e) {
|
|
|
// TODO: handle exception
|
|
|
this.renderText(e.toString());
|