|
@ -97,12 +97,12 @@ public class WechatCoreController extends WeixinBaseController {
|
|
// 服务器错误
|
|
// 服务器错误
|
|
response.setStatus(500);
|
|
response.setStatus(500);
|
|
} else if (!flag && StringUtils.isNotEmpty(xmlStr)) {
|
|
} else if (!flag && StringUtils.isNotEmpty(xmlStr)) {
|
|
JSONObject json = new JSONObject(xmlStr);
|
|
|
|
if (json.has("openId")) {
|
|
|
|
if (StringUtils.isNotEmpty(json.getString("openId")) && !("undefined".equals(json.getString("openId")))) {
|
|
|
|
pushMsgTask.putWxMsg(getAccessToken(), json.getInt("type"), json.getString("openId"), null, json);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// JSONObject json = new JSONObject(xmlStr);
|
|
|
|
// if (json.has("openId")) {
|
|
|
|
// if (StringUtils.isNotEmpty(json.getString("openId")) && !("undefined".equals(json.getString("openId")))) {
|
|
|
|
// pushMsgTask.putWxMsg(getAccessToken(), json.getInt("type"), json.getString("openId"), null, json);
|
|
|
|
// }
|
|
|
|
// }
|
|
} else {
|
|
} else {
|
|
// 返回消息(图文消息)
|
|
// 返回消息(图文消息)
|
|
response.setHeader("Content-type", "text/html;charset=UTF-8");
|
|
response.setHeader("Content-type", "text/html;charset=UTF-8");
|