env('APP_HOST')],function () { Route::get('/', function (){ return redirect()->route('login'); }); //后台客服登录以及找回密码 Route::match(['get','post'],'/service/send', 'Api\CommonController@sendSms')->name('service.send'); Route::match(['get','post'],'/service/sts', 'Api\CommonController@getAliSts')->name('service.sts'); }); Route::group(['domain' => env('APP_HOST_WEB')],function () { //后台客服登录以及找回密码 Route::match(['get','post'],'/', 'Api\CommonController@index')->name('index'); });