|
|
|
@@ -199,8 +199,9 @@ public class WechatCalllbackController extends BaseController { |
|
|
|
openService.getWxOpenConfigStorage(), timestamp, nonce, msgSignature); |
|
|
|
logger.info("接收微信APP回调,消息解密后内容为:\n{}", inMessage.toString()); |
|
|
|
|
|
|
|
if(appinfo.getType().equals(EnumAppType.B.getCode()) || appinfo.getType().equals(EnumAppType.C.getCode())) { |
|
|
|
// 小程序 |
|
|
|
if(appinfo.getType().equals(EnumAppType.B.getCode()) || |
|
|
|
appinfo.getType().equals(EnumAppType.C.getCode())) { |
|
|
|
// 小程序 审核 消息 |
|
|
|
/**判断消息类型,调用对应的方法*/ |
|
|
|
switch (inMessage.getMsgType()) { |
|
|
|
case "event": { |
|
|
|
@@ -238,7 +239,7 @@ public class WechatCalllbackController extends BaseController { |
|
|
|
this.logger.info("2 return: success"); |
|
|
|
return "success"; |
|
|
|
} |
|
|
|
logger.info(outMessage.toString()); |
|
|
|
logger.info("组装回复" + outMessage.toXml()); |
|
|
|
out = outMessage.toEncryptedXml(mpService.getWxMpConfigStorage()); |
|
|
|
logger.info("组装回复消息-->"+out); |
|
|
|
} catch (Exception e) { |
|
|
|
|