rkljw 1 tuần trước cách đây
mục cha
commit
408c8b56c8
1 tập tin đã thay đổi với 3 bổ sung7 xóa
  1. 3 7
      app/JsonRpc/NewsService.php

+ 3 - 7
app/JsonRpc/NewsService.php

@@ -3265,14 +3265,10 @@ class NewsService implements NewsServiceInterface
     }elseif ($web['status'] != 1){
         return Result::error("网站已经关闭", 0);
     }
-    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 {
-        return Result::success($whiteRouterInfo->toArray());
+      if (!empty($whiteRouterInfo)) {
+          return Result::success($whiteRouterInfo->toArray());
       }
-    } else {
       // 验证栏目路由
       $last_category = WebsiteCategory::where('website_id', $data['website_id'])
         ->where('aLIas_pinyin', $data['last_route'])
@@ -3388,7 +3384,7 @@ class NewsService implements NewsServiceInterface
       } else {
         return Result::success($pinyin);
       }
-    }
+
   }
   /**
    * 招工招聘  -  获取推荐职位