Parcourir la source

建立接口:获取通栏分类

15313670163 il y a 16 heures
Parent
commit
d32728e5de
2 fichiers modifiés avec 1 ajouts et 31 suppressions
  1. 1 29
      app/JsonRpc/PublicRpcService.php
  2. 0 2
      app/JsonRpc/PublicRpcServiceInterface.php

+ 1 - 29
app/JsonRpc/PublicRpcService.php

@@ -2684,33 +2684,5 @@ class PublicRpcService implements PublicRpcServiceInterface
         return Result::success($sector);
     }
 
-    /**
-     * 自助建站-随机生成模板
-     */
-    // public function randomWebTemplate(array $data): array
-    // {
-    //     // $where['website_id'] = $data['website_id'];
-    //     $web = Website::where('id',$data['website_id'])->first();
-
-    //     if(empty($web)){
-    //         return Result::error('网站不存在!');
-    //     }
-    //     $where['template_id'] = $data['template_id'];
-    //     $template = Template::where($where)->first();
-    //     if(empty($template)){
-    //         return Result::error('模板不存在!');
-    //     }
-    //     $rule = TemplateRule::first();
-    //     if(empty($rule)){
-    //         return Result::error('模板规则不存在!');
-    //     }
-    //     $index_rule = json_decode($rule->index_rule,true);
-    //     $index = $this->getRandomIndex($index_rule,$template);
-    //     return Result::success($index);
-    // }
-    // public function getRandomIndex($index_rule,$template){
-    //     // $where = ['page_type','like','%'.1.'%'];
-    //     $index = Sector::where('template_id',$template->template_id)->where('page_type','like','%1%')->limit(10)->get();
-    //     return $index;
-    // }
+    
 }

+ 0 - 2
app/JsonRpc/PublicRpcServiceInterface.php

@@ -206,8 +206,6 @@ interface PublicRpcServiceInterface
     public function delComponentImg(array $data): array;
     //组件管理-更新组件预览图
     public function updateComponentImg(array $data): array;
-    //自助建站-随机生成模板
-    // public function randomWebTemplate(array $data): array;
     //自助建站-获取通栏类型
     public function getSectorType(array $data): array;