update 同步委员会信息超时时间
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jero.util;
|
|||||||
|
|
||||||
import cn.hutool.crypto.SmUtil;
|
import cn.hutool.crypto.SmUtil;
|
||||||
import cn.hutool.crypto.symmetric.SM4;
|
import cn.hutool.crypto.symmetric.SM4;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
import cn.hutool.http.HttpUtil;
|
import cn.hutool.http.HttpUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@@ -63,7 +64,13 @@ public class ZxdUtil {
|
|||||||
HashMap<String, Object> map = new HashMap<>();
|
HashMap<String, Object> map = new HashMap<>();
|
||||||
map.put("appId",APP_ID);
|
map.put("appId",APP_ID);
|
||||||
map.put("abbreviation",encrypt);
|
map.put("abbreviation",encrypt);
|
||||||
String s1 = HttpUtil.get(URL, map);
|
String url = URL + "?appId=" + APP_ID + "&abbreviation=" + encrypt;
|
||||||
|
log.error("url:"+url);
|
||||||
|
String s1 = HttpRequest.get(url)
|
||||||
|
.timeout(60000)
|
||||||
|
.execute()
|
||||||
|
.body();
|
||||||
|
//String s1 = HttpUtil.get(url);
|
||||||
SM4 sm4 = SmUtil.sm4(SM4_KEY.getBytes());
|
SM4 sm4 = SmUtil.sm4(SM4_KEY.getBytes());
|
||||||
String str = sm4.decryptStr(s1);
|
String str = sm4.decryptStr(s1);
|
||||||
JSONObject jsonObject = JSONObject.parseObject(str);
|
JSONObject jsonObject = JSONObject.parseObject(str);
|
||||||
|
|||||||
Reference in New Issue
Block a user