微信菜单

This commit is contained in:
JaguarJack
2020-06-26 16:27:20 +08:00
parent ce71b10d1c
commit a232f555c3
14 changed files with 515 additions and 3 deletions

View File

@@ -25,5 +25,10 @@ $router->group('wechat', function () use ($router){
});
// 消息
$router->rule('message', '\catchAdmin\wechat\controller\Message@done', 'GET|POST');
// 微信菜单
$router->group('official/menus', function () use ($router){
$router->resource('', '\catchAdmin\wechat\controller\Menus');
$router->post('sync', '\catchAdmin\wechat\controller\Menus@sync');
});
})->middleware('auth');