web.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 = 'xingyousoft.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. Route::get('/softcenter/XYEbook', 'SoftcenterController@XYEbook');
  39. Route::get('/softcenter/XYPinyin', 'SoftcenterController@XYPinyin');
  40. Route::get('/softcenter/XYImage', 'SoftcenterController@XYImage');
  41. Route::get('/softcenter/XYAudio', 'SoftcenterController@XYAudio');
  42. Route::get('/softcenter/XYVideos', 'SoftcenterController@XYVideos');
  43. Route::get('/softcenter/XYRename', 'SoftcenterController@XYRename');
  44. Route::get('/softcenter/XYCompress', 'SoftcenterController@XYCompress');
  45. Route::get('/softcenter/XYPdf', 'SoftcenterController@XYPdf');
  46. Route::get('/softcenter/XYWatermark', 'SoftcenterController@XYWatermark');
  47. // 测试
  48. //Route::get('/help/{cid?}', [\App\Http\Home\Compress\IndexController::class, 'help']);
  49. //Route::get('/detail/{mid}', [\App\Http\Home\Compress\IndexController::class, 'newsDetail']);
  50. //test123
  51. Route::any('/test123', 'IndexController@test123');
  52. /**
  53. * 软件嵌入的页面
  54. */
  55. Route::get('/soft/login/{pmid}', 'SoftController@login');
  56. Route::get('/soft/buy/{pmid}', 'SoftController@buy');
  57. Route::get('/soft/reminder/{pmid}', 'SoftController@reminder');
  58. Route::get('/soft/login2/{pmid}', 'SoftController@login2'); // electron use
  59. Route::get('/soft/buy2/{pmid}', 'SoftController@buy2'); // electron use
  60. Route::get('/soft/reminder2/{pmid}', 'SoftController@reminder2'); // electron use
  61. Route::get('/soft/pay/{code}', 'SoftController@pay');
  62. Route::get('/download/{pmid}/{osPlatform?}', 'SoftController@download'); //exe安装包
  63. Route::get('/download/{pmid}.exe', 'SoftController@download'); //exe安装包
  64. Route::get('/soft/installPackage/{osPlatform}/{pmid}', 'SoftController@installPackage'); //卸载优惠展示
  65. Route::get('/soft/uninstallWeb/{pmid}', 'SoftController@uninstallWeb'); //卸载优惠展示