Compare commits
4 Commits
copilot/fi
...
f534b26daf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f534b26daf | ||
|
|
66dcf55552 | ||
|
|
ec5c1716a3 | ||
|
|
eb987323e1 |
@@ -23,4 +23,29 @@ public class WxOpenMessageRouter extends WxMpMessageRouter {
|
||||
public WxMpXmlOutMessage route(final WxMpXmlMessage wxMessage, final Map<String, Object> context, String appId) {
|
||||
return route(wxMessage, context, wxOpenService.getWxOpenComponentService().getWxMpServiceByAppid(appId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 路由微信消息到小程序服务 (Route WeChat message to Mini App service)
|
||||
*
|
||||
* @param wxMessage the wx message
|
||||
* @param appId the app id
|
||||
* @return the wx mp xml out message
|
||||
*/
|
||||
public WxMpXmlOutMessage routeForMa(final WxMpXmlMessage wxMessage, String appId) {
|
||||
return routeForMa(wxMessage, new HashMap<>(), appId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 路由微信消息到小程序服务 (Route WeChat message to Mini App service)
|
||||
*
|
||||
* @param wxMessage the wx message
|
||||
* @param context the context
|
||||
* @param appId the app id
|
||||
* @return the wx mp xml out message
|
||||
*/
|
||||
public WxMpXmlOutMessage routeForMa(final WxMpXmlMessage wxMessage, final Map<String, Object> context, String appId) {
|
||||
// 将小程序服务放入上下文中,以便处理器可以访问 (Put Mini App service in context so handlers can access it)
|
||||
context.put("wxOpenMaService", wxOpenService.getWxOpenComponentService().getWxMaServiceByAppid(appId));
|
||||
return route(wxMessage, context, wxOpenService.getWxOpenComponentService().getWxMpServiceByAppid(appId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user