rkljw 1 lună în urmă
părinte
comite
610c708f4b
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      app/JsonRpc/NewsService.php

+ 2 - 2
app/JsonRpc/NewsService.php

@@ -3265,8 +3265,8 @@ class NewsService implements NewsServiceInterface
     }elseif ($web['status'] != 1){
         return Result::error("网站已经关闭", 0);
     }
-    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 (isset($data['all_route']) && !empty($data['all_route'])) {
+      $whiteRouterInfo = WhiteRouter::whereJsonContains("website_id", $data['website_id'])->where('router_url', $data['all_route'])->first();
       if (empty($whiteRouterInfo)) {
         return Result::error("非法路径地址", 0);
       } else {