<?php
 $router->match(['get', 'post'], 'pay/return/{payType}', '\Module\PayCenter\Web\Controller\ReturnController@index'); $router->match(['get', 'post'], 'pay/notify/{payType}', '\Module\PayCenter\Web\Controller\NotifyController@index'); $router->group([ 'middleware' => [ \Module\Member\Middleware\ApiAuthMiddleware::class, ], ], function () use ($router) { $router->match(['get', 'post'], 'pay/info', 'PayController@info'); $router->match(['get', 'post'], 'pay/submit', 'PayController@submit'); }); 