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