web.php 690 B

1234567891011121314151617181920212223
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::get('/', function () {
  4. if (app()->environment() == 'production') {
  5. return redirect('https://www.fenpeiduixiang.com');
  6. }
  7. });
  8. Route::group(['prefix' => 'q'], function () {
  9. Route::get('from/{from}/{secret?}', 'Wechat\Qrcode@from');
  10. Route::get('{param}', 'Wechat\Qrcode@all');
  11. });
  12. Route::get('pq/{param}/{alias?}', 'Wechat\Qrcode@perpetual');
  13. #短信发送验证
  14. Route::group(['prefix' => 'sms'], function () {
  15. Route::post('verify', 'Core\Oauth@sendVerifyCode');
  16. Route::get('verify', 'Core\Oauth@checkVerifyCode');
  17. });
  18. Route::get('/test/notice', 'Home@test');
  19. Route::get('qrcode', 'QrCodeController@index');