Comments (5)
@zerozh 麻烦说清楚一点,没太看明白
from easywechat.
@zerozh 明白了
from easywechat.
@zerozh 可是那样的话,就没办法指定监听某一类了?而是把这个类型筛选完全交给用户来实现了?
from easywechat.
@overtrue 这样做有两个好处:为了方便统一记录日志;方便高级用户完全自定义类型筛选
from easywechat.
@zerozh 像下面这样?
$response = $wechat->serve(function($message){
switch($message->MsgType) {
case 'event':
// handle event
break;
case 'message' :
// handle message
break;
}
});
return $response;
from easywechat.
Related Issues (20)
- PSR/HTTP message on which nyholm/psr7 server relies HOT 1
- Dependencies of nyholm/psr7 server HOT 1
- easywechat5 有没有微信开发者模式的接口 HOT 1
- 正超你好,easywechat能不能与wordpress衔接的更好?通过安装插件就能用很多功能? HOT 1
- 6.x新版本的回调中如果逻辑报错,如何告知微信通知失败,让微信发起轮询通知策略 HOT 1
- 企业微信怎么发送图片消息
- 上传素材图文接口已经不支持了 HOT 5
- 有兴趣来个抖音系的sdk不 HOT 1
- 微信公众号如何替换JsApiTicket? HOT 3
- laravel重定向微信公众号授权链接提示跨域 HOT 4
- 为什么公众号网页授权`$user->getRaw()`被画了删除线? HOT 6
- 微信官方新增,获取稳定版接口调用凭据 Stable Access token HOT 1
- Unsupported option "appid" passed to "Symfony\Component\HttpClient\CurlHttpClient"
- 官网证书过期了 HOT 3
- laravel10 安装6.X报错 HOT 5
- 6.0-dev 生成createV2Signature签名没有及时移除signType导致前面错误
- 6.0-dev 生成createV2Signature签名没有及时移除signType导致签名错误 HOT 1
- 网站无法访问 HOT 1
- 请问5.x版本中,是否预留了自定义请求路径的功能?如6.x版本中的自定义api请求 HOT 2
- 微信支付 getClient(), postJson HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easywechat.