Browse Source

增加日志

develop
bin 3 years ago
parent
commit
7974eacf79
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/java/com/ssjl/zhaobiao/guizhou/utils/GZHttpUtil.java

+ 2
- 0
src/main/java/com/ssjl/zhaobiao/guizhou/utils/GZHttpUtil.java View File

@@ -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);


Loading…
Cancel
Save