web.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. // 测试
  45. //Route::get('/help/{cid?}', [\App\Http\Home\Compress\IndexController::class, 'help']);
  46. //Route::get('/detail/{mid}', [\App\Http\Home\Compress\IndexController::class, 'newsDetail']);
  47. //test123
  48. Route::any('/test123', 'IndexController@test123');
  49. /**
  50. * 软件嵌入的页面
  51. */
  52. Route::get('/soft/login/{pmid}', 'SoftController@login');
  53. Route::get('/soft/buy/{pmid}', 'SoftController@buy');
  54. Route::get('/soft/reminder/{pmid}', 'SoftController@reminder');
  55. Route::get('/soft/login2/{pmid}', 'SoftController@login2'); // electron use
  56. Route::get('/soft/buy2/{pmid}', 'SoftController@buy2'); // electron use
  57. Route::get('/soft/reminder2/{pmid}', 'SoftController@reminder2'); // electron use
  58. Route::get('/soft/pay/{code}', 'SoftController@pay');
  59. Route::get('/download/{pmid}/{osPlatform?}', 'SoftController@download'); //exe安装包
  60. Route::get('/download/{pmid}.exe', 'SoftController@download'); //exe安装包
  61. Route::get('/soft/installPackage/{osPlatform}/{pmid}', 'SoftController@installPackage'); //卸载优惠展示
  62. Route::get('/soft/uninstallWeb/{pmid}', 'SoftController@uninstallWeb'); //卸载优惠展示