rkljw před 1 týdnem
rodič
revize
46c8d0fccf
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      app/JsonRpc/NewsService.php

+ 3 - 1
app/JsonRpc/NewsService.php

@@ -3265,10 +3265,12 @@ class NewsService implements NewsServiceInterface
     }elseif ($web['status'] != 1){
         return Result::error("网站已经关闭", 0);
     }
-      $whiteRouterInfo = WhiteRouter::whereJsonContains("website_id", $data['website_id'])->where('router_url', $data['all_route'])->first();
+    if (isset($data['other_route']) && !empty($data['other_route'])) {
+      $whiteRouterInfo = WhiteRouter::whereJsonContains("website_id", $data['website_id'])->where('router_url', $data['other_route'])->first();
       if (!empty($whiteRouterInfo)) {
           return Result::success($whiteRouterInfo->toArray());
       }
+    }
       // 验证栏目路由
       $last_category = WebsiteCategory::where('website_id', $data['website_id'])
         ->where('aLIas_pinyin', $data['last_route'])