瀏覽代碼

路由修改

moshaorui 2 月之前
父節點
當前提交
123fff6532
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      routes/web.php

+ 1 - 1
routes/web.php

@@ -27,7 +27,7 @@ use App\Models\DistProductCategory;
 
 //巴西官网专用路由
 $host = $_SERVER['HTTP_HOST']; // 获取当前域名
-if ($host == 'internal-dist.mietubl.com.cn') {
+if ($host == 'internal-demo-site.mietubl.com.cn') {
     Route::get('/{slug}', function ($slug) {
         // 查询数据库,将 category_slug 转换为对应ID
         $categoryId = DistProductCategory::where('slug',$slug)