File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class EasyWeChatController extends LaravelController
1717 */
1818 protected $ events = [
1919 'authorized ' => Events \Authorized::class,
20- 'unauthorized ' => Events \UnAuthorized ::class,
20+ 'unauthorized ' => Events \Unauthorized ::class,
2121 'updateauthorized ' => Events \UpdateAuthorized::class,
2222 ];
2323
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Overtrue \LaravelWechat \Events \OpenPlatform ;
4+
5+ use EasyWeChat \Support \Collection ;
6+ use Illuminate \Queue \SerializesModels ;
7+
8+ class Unauthorized
9+ {
10+ use SerializesModels;
11+
12+ public $ message ;
13+
14+ /**
15+ * Create a new event instance.
16+ *
17+ * @param \EasyWeChat\Support\Collection $message
18+ */
19+ public function __construct (Collection $ message )
20+ {
21+ $ this ->message = $ message ;
22+ }
23+
24+ /**
25+ * Get the channels the event should be broadcast on.
26+ *
27+ * @return array
28+ */
29+ public function broadcastOn ()
30+ {
31+ return [];
32+ }
33+ }
You can’t perform that action at this time.
0 commit comments