web.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13. $app_env = app()->environment();
  14. if ($app_env == 'local') {
  15. $domain = 'yy2.me';
  16. } else {
  17. $domain = 'qasimblog.com';
  18. }
  19. //产品 二级域名
  20. include('common/audio.php');
  21. include('common/compress.php');
  22. include('common/images.php');
  23. include('common/pdf.php');
  24. include('common/video.php');
  25. include('common/watermark.php');
  26. #########################################################################
  27. #########################################################################
  28. /**
  29. * 页面路径
  30. */
  31. Route::get('/', 'IndexController@index');
  32. Route::get('/buy', 'BuyController@index');
  33. Route::get('/help', 'HelpController@index');
  34. Route::get('/detail', 'HelpController@index');
  35. Route::get('/about', 'AboutController@index');
  36. Route::get('/news/category/{cid?}', 'HelpController@category');
  37. Route::get('/news/detail/{mid?}', 'HelpController@detail');
  38. // 测试
  39. //Route::get('/help/{cid?}', [\App\Http\Home\Compress\IndexController::class, 'help']);
  40. //Route::get('/detail/{mid}', [\App\Http\Home\Compress\IndexController::class, 'newsDetail']);
  41. //test123
  42. Route::any('/test123', 'IndexController@test123');
  43. /**
  44. * 软件嵌入的页面
  45. */
  46. Route::get('/soft/login/{pmid}', 'SoftController@login');
  47. Route::get('/soft/buy/{pmid}', 'SoftController@buy');
  48. Route::get('/soft/reminder/{pmid}', 'SoftController@reminder');
  49. Route::get('/soft/login2/{pmid}', 'SoftController@login2'); // electron use
  50. Route::get('/soft/buy2/{pmid}', 'SoftController@buy2'); // electron use
  51. Route::get('/soft/reminder2/{pmid}', 'SoftController@reminder2'); // electron use
  52. Route::get('/soft/pay/{code}', 'SoftController@pay');
  53. Route::get('/download/{pmid}/{osPlatform?}', 'SoftController@download'); //exe安装包
  54. Route::get('/download/{pmid}.exe', 'SoftController@download'); //exe安装包
  55. Route::get('/soft/installPackage/{osPlatform}/{pmid}', 'SoftController@installPackage'); //卸载优惠展示
  56. Route::get('/soft/uninstallWeb/{pmid}', 'SoftController@uninstallWeb'); //卸载优惠展示