Compare commits
No commits in common. "a1e4af12b94f35518bc0a9e895b47be534420fe9" and "33e37166bf1174381e7aa83846670c92526959d5" have entirely different histories.
a1e4af12b9
...
33e37166bf
|
@ -7,6 +7,7 @@ import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||
import kd.bos.util.HttpClientUtils;
|
||||
import kd.bos.util.StringUtils;
|
||||
import kd.data.idi.util.HexUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -25,12 +26,12 @@ import java.util.Map;
|
|||
*/
|
||||
public class RequestClient {
|
||||
private static RequestClient _instance;
|
||||
private static final Logger logger = LoggerFactory.getLogger(RequestClient.class);
|
||||
private static Logger logger = LoggerFactory.getLogger(RequestClient.class);
|
||||
// application/x-www-form-urlencoded
|
||||
private final String protocal;//http
|
||||
private final String ip;// 域名
|
||||
private final String port;// 端口
|
||||
private final String clientKey;// 系统标识
|
||||
private String protocal;//http
|
||||
private String ip;// 域名
|
||||
private String port;// 端口
|
||||
private String clientKey;// 系统标识
|
||||
// private String clientSecret_scict;// clientSecret-scict
|
||||
|
||||
private RequestClient() {
|
||||
|
@ -87,10 +88,10 @@ public class RequestClient {
|
|||
private Map<String, String> getHeaders() throws NoSuchAlgorithmException {
|
||||
MessageDigest md5 = MessageDigest.getInstance("MD5");
|
||||
byte[] md5Bytes = md5.digest(this.clientKey.getBytes());
|
||||
/*String md5Str = HexUtil.bytes2Hex(md5Bytes).toUpperCase();*/
|
||||
String md5Str = HexUtil.bytes2Hex(md5Bytes).toUpperCase();
|
||||
HashMap<String, String> map = new HashMap();
|
||||
map.put("systemid", this.clientKey);
|
||||
/* map.put("sign", md5Str);*/
|
||||
map.put("sign", md5Str);
|
||||
map.put("Content-Type", "application/x-www-form-urlencoded");
|
||||
return map;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue