update 同步委员会信息超时时间

This commit is contained in:
lijiarao
2024-08-09 14:32:30 +08:00
parent 9a8511d136
commit 8d6dd81beb
@@ -2,6 +2,7 @@ package com.jero.util;
import cn.hutool.crypto.SmUtil;
import cn.hutool.crypto.symmetric.SM4;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
@@ -63,7 +64,13 @@ public class ZxdUtil {
HashMap<String, Object> map = new HashMap<>();
map.put("appId",APP_ID);
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());
String str = sm4.decryptStr(s1);
JSONObject jsonObject = JSONObject.parseObject(str);