提交 87986c46 编写于 作者: 如梦技术's avatar 如梦技术 🐛

🔖 v1.4.0.

上级 6936fdde
package com.example.demo;
import com.jfinal.weixin.sdk.utils.JsonUtils;
import com.jfinal.wxaapp.WxaConfigKit;
import com.jfinal.wxaapp.msg.bean.WxaImageMsg;
import com.jfinal.wxaapp.msg.bean.WxaTextMsg;
import com.jfinal.wxaapp.msg.bean.WxaUserEnterSessionMsg;
......@@ -16,7 +18,8 @@ public class WxaController extends DreamWxaMsgController {
@Override
protected void processTextMsg(WxaTextMsg wxaTextMsg) {
System.out.println("接受到小程序消息:" + WxaConfigKit.getAppId());
System.out.println(JsonUtils.toJson(wxaTextMsg));
}
@Override
......
......@@ -2,6 +2,7 @@ dream:
weixin:
dev-mode: true
url-patterns: /weixin/**
app-id-key: appId
wx-configs:
# 可自定义 WxConfigLoader 用于从数据库等地方加载配置
# - appId: wxc03edcd008ad1e70
......@@ -15,4 +16,6 @@ dream:
wxa-configs:
- app-id: wx4f53594f9a6b3dcb
app-secret: eec6482ba3804df05bd10895bace0579
- app-id: wx1111111111111111
app-secret: eec6482ba3804df05bd10895bace0579
json-type: jackson
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册