|
@@ -24,8 +24,10 @@ public class GZHttpUtil { |
|
|
Headers headers = new Headers.Builder().add("meid-id", imei).add("imsi-id", phone).build(); |
|
|
Headers headers = new Headers.Builder().add("meid-id", imei).add("imsi-id", phone).build(); |
|
|
byte[] b = req.toByte(); |
|
|
byte[] b = req.toByte(); |
|
|
b = GZUtil.encode(b); |
|
|
b = GZUtil.encode(b); |
|
|
|
|
|
log.info("发给电信:" + ByteUtil.bytesToHexString(b)); |
|
|
try { |
|
|
try { |
|
|
byte[] res = httpUtil.postBytes(url, b, headers); |
|
|
byte[] res = httpUtil.postBytes(url, b, headers); |
|
|
|
|
|
log.info("电信返回:" + ByteUtil.bytesToHexString(res)); |
|
|
return res; |
|
|
return res; |
|
|
} catch (IOException e) { |
|
|
} catch (IOException e) { |
|
|
log.info("timeout目标地址:" + url); |
|
|
log.info("timeout目标地址:" + url); |
|
|