Commit 5520acfc by 吕明尚

修改微信订阅消息推送的报错

parent 0a853152
...@@ -511,7 +511,8 @@ public class WechatNewServiceImpl implements WechatNewService { ...@@ -511,7 +511,8 @@ public class WechatNewServiceImpl implements WechatNewService {
if (data2.containsKey("errcode") && !data2.getString("errcode").equals("0")) { if (data2.containsKey("errcode") && !data2.getString("errcode").equals("0")) {
if (data2.containsKey("errmsg")) { if (data2.containsKey("errmsg")) {
wxExceptionDispose(data2, "微信小程序发送订阅消息重试异常"); wxExceptionDispose(data2, "微信小程序发送订阅消息重试异常");
throw new BaseException("微信接口调用失败:" + data2.getString("errcode") + data2.getString("errmsg")); logger.error("微信小程序发送订阅消息重试异常:" + data2.getString("errcode") + data2.getString("errmsg"));
// throw new BaseException("微信接口调用失败:" + data2.getString("errcode") + data2.getString("errmsg"));
} }
} else { } else {
return Boolean.TRUE; return Boolean.TRUE;
...@@ -519,7 +520,8 @@ public class WechatNewServiceImpl implements WechatNewService { ...@@ -519,7 +520,8 @@ public class WechatNewServiceImpl implements WechatNewService {
} }
if (data.containsKey("errmsg")) { if (data.containsKey("errmsg")) {
wxExceptionDispose(data, "微信小程序发送订阅消息异常"); wxExceptionDispose(data, "微信小程序发送订阅消息异常");
throw new BaseException("微信接口调用失败:" + data.getString("errcode") + data.getString("errmsg")); logger.error("微信小程序发送订阅消息异常:" + data.getString("errcode") + data.getString("errmsg"));
// throw new BaseException("微信接口调用失败:" + data.getString("errcode") + data.getString("errmsg"));
} }
} }
return Boolean.TRUE; return Boolean.TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment