| @@ -196,8 +196,6 @@ public class WechatCalllbackController extends BaseController { | |||||
| appId, openid, signature, encType, msgSignature, timestamp, nonce, resultxml); | appId, openid, signature, encType, msgSignature, timestamp, nonce, resultxml); | ||||
| WxAppinfo appinfo = appinfoService.getByAppId(appId); | |||||
| String out = ""; | String out = ""; | ||||
| // aes加密的消息 | // aes加密的消息 | ||||
| WxMpXmlMessage inMessage = WxOpenXmlMessage.fromEncryptedMpXml(resultxml, | WxMpXmlMessage inMessage = WxOpenXmlMessage.fromEncryptedMpXml(resultxml, | ||||
| @@ -228,8 +226,16 @@ public class WechatCalllbackController extends BaseController { | |||||
| } catch (WxErrorException e) { | } catch (WxErrorException e) { | ||||
| logger.error("callback", e); | logger.error("callback", e); | ||||
| } | } | ||||
| PrintWriter printWriter = response.getWriter(); | |||||
| printWriter.print("success"); | |||||
| printWriter.flush(); | |||||
| printWriter.close(); | |||||
| return; | |||||
| } | } | ||||
| WxAppinfo appinfo = appinfoService.getByAppId(appId); | |||||
| PrintWriter printWriter = response.getWriter(); | PrintWriter printWriter = response.getWriter(); | ||||
| if(appinfo.getType().equals(EnumAppType.B.getCode()) || | if(appinfo.getType().equals(EnumAppType.B.getCode()) || | ||||