web.php 3.3 KB

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