|
|
@ -73,4 +73,16 @@ Router::addGroup('/wechat/',function () { |
|
|
Router::post('notify/wxminionline', 'App\Controller\NotifyController@wxminiOnline'); |
|
|
Router::post('notify/wxminionline', 'App\Controller\NotifyController@wxminiOnline'); |
|
|
Router::post('notify/wxminioffline', 'App\Controller\NotifyController@wxminiOffline'); |
|
|
Router::post('notify/wxminioffline', 'App\Controller\NotifyController@wxminiOffline'); |
|
|
Router::post('notify/wxpayrefund', 'App\Controller\NotifyPayRefundController@wxPayRefund'); |
|
|
Router::post('notify/wxpayrefund', 'App\Controller\NotifyPayRefundController@wxPayRefund'); |
|
|
}); |
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// 不需要登录的路由
|
|
|
|
|
|
Router::addGroup('/v3/', function () { |
|
|
|
|
|
Router::post('location/getNearestMarket', 'App\Controller\v3\LocationController@getNearestMarket'); |
|
|
|
|
|
Router::post('home/appletIndex', 'App\Controller\v3\HomeController@appletIndex'); |
|
|
|
|
|
Router::post('Goods/detail', 'App\Controller\v3\GoodsController@detail'); |
|
|
|
|
|
},['middleware' => [\App\Middleware\Auth\ApiMiddleware::class]]); |
|
|
|
|
|
|
|
|
|
|
|
// 需要登录的路由
|
|
|
|
|
|
Router::addGroup('/v3/', function () { |
|
|
|
|
|
|
|
|
|
|
|
},['middleware' => [\App\Middleware\Auth\ApiMiddleware::class, \App\Middleware\Auth\UserMiddleware::class]]); |