get('/user', function (Request $request) { return $request->user(); }); Route::group(['prefix' => 'Advert/V1', 'namespace' => 'Advert\V1'], function () { Route::post("getAdvert", 'AdvertController@getAdvert'); Route::post("advertRecord", 'AdvertController@advertRecord'); // Route::post("getAdvert", function (){echo 1;}); }); Route::group(['prefix' => 'Code/V1', 'namespace' => 'Code\V1', 'middleware' => 'sign'], function () { Route::post("sendCode", 'SendCode@sendCode'); Route::post("sendCodes", 'SendCode@sendCodes'); //返回所有短信通道 Route::post("returnSmsChannel", 'SendCode@returnSmsChannel'); //根据短信通道id 获取签名及模板 Route::post("returnSignAndTpl", 'SendCode@returnSignAndTpl'); // Route::post("sendsCode", 'SendCode@sendsCode'); }); //新版发送短信 //Route::group(['prefix' => 'Code/V2', 'namespace' => 'Code\V2', 'middleware' => 'sign'], function () { Route::group(['prefix' => 'Code/V2', 'namespace' => 'Code\V2'], function () { Route::post("singleSms", 'SmsController@singleSms'); Route::post("multiSms", 'SmsController@multiSms'); Route::post("templateList", 'SmsController@templateList'); Route::post("signList", 'SmsController@signList'); Route::post("voiceCode", 'SmsController@voiceCode'); }); Route::group(['prefix' => 'Push/V1', 'namespace' => 'Push\V1'], function () { Route::post("miPush", 'PushController@miPush'); Route::post("deleteScheduleJob", 'PushController@deleteScheduleJob'); //华为推送 Route::post("huaweiPush", 'PushController@huaweiPush'); //获取 Route::post("getHuaweiToken", 'PushController@getHuaweiToken'); Route::post("oppoGetAuth", 'PushController@oppoGetAuth'); Route::post("oppoPush", 'PushController@oppoPush'); Route::post("vivoGetAuth", 'PushController@vivoGetAuth'); Route::post("vivoPush", 'PushController@vivoPush'); }); Route::group(['prefix' => 'PushMessage/V1', 'namespace' => 'PushMessage\V1'], function () { Route::post("getXhzMessage", 'PushMessageController@getXhzMessage'); Route::post("getMessage", 'PushMessageController@getMessage'); }); Route::get('/allStaff','Advert\V1\AdvertController@allStaff'); Route::get('/signUp','Advert\V1\AdvertController@staffSignUp'); Route::get('/signStaffList','Advert\V1\AdvertController@signUpStaffList'); Route::get('/luckDraw','Advert\V1\AdvertController@luckDraw'); Route::get('/luckDrawInit','Advert\V1\AdvertController@luckDrawInit'); Route::get('/signUpInit','Advert\V1\AdvertController@signUpInit'); Route::get('/searchStaff','Advert\V1\AdvertController@searchStaff');