Browse Source

修改获取及搜索网站模板及获取已选择的模板信息

15313670163 2 months ago
parent
commit
d0a6463a9d
4 changed files with 144 additions and 6 deletions
  1. 23 5
      app/JsonRpc/WebsiteService.php
  2. 0 0
      runtime/container/scan.cache
  3. 1 1
      runtime/hyperf.pid
  4. 120 0
      runtime/logs/hyperf.log

+ 23 - 5
app/JsonRpc/WebsiteService.php

@@ -1351,16 +1351,34 @@ class WebsiteService implements WebsiteServiceInterface
                     return Result::error("没有查找到相关数据!",0);
                     return Result::error("没有查找到相关数据!",0);
                 }else{
                 }else{
                     // 过滤 template_img 字段 只获取 基础信息中 包含的模板图片
                     // 过滤 template_img 字段 只获取 基础信息中 包含的模板图片
+                    // $rep->each(function ($item) use ($where) {
+                    //     $template_img = json_decode($item->template_img, true);
+                    //     if(is_array($template_img)){
+                    //         $filtered_img = array_filter($template_img, function ($img) use ($where) {
+                    //             return isset($img['value']) && in_array($img['value'], $where);
+                    //         });
+                    //     }   
+                                            
+                    //     $item->template_img = $filtered_img;
+                    // });
+                    // $result = [
+                    //     "rows" => $rep->toArray(),
+                    //     "count" => $count
+                    // ];
                     $rep->each(function ($item) use ($where) {
                     $rep->each(function ($item) use ($where) {
                         $template_img = json_decode($item->template_img, true);
                         $template_img = json_decode($item->template_img, true);
-                        if(is_array($template_img)){
+                        if (is_array($template_img)) {
                             $filtered_img = array_filter($template_img, function ($img) use ($where) {
                             $filtered_img = array_filter($template_img, function ($img) use ($where) {
                                 return isset($img['value']) && in_array($img['value'], $where);
                                 return isset($img['value']) && in_array($img['value'], $where);
                             });
                             });
-                        }   
-                                            
-                        $item->template_img = $filtered_img;
+                            // 对过滤后的数组进行重新排序
+                            $sorted_img = array_values($filtered_img);
+                            $item->template_img = $sorted_img;
+                        } else {
+                            $item->template_img = []; // 如果无法解码为数组,则设置为空数组
+                        }
                     });
                     });
+                    
                     $result = [
                     $result = [
                         "rows" => $rep->toArray(),
                         "rows" => $rep->toArray(),
                         "count" => $count
                         "count" => $count
@@ -1438,7 +1456,7 @@ class WebsiteService implements WebsiteServiceInterface
             }
             }
         }
         }
         // return Result::success($result);
         // return Result::success($result);
-        $result['template_img'] = $template_img;
+        $result['template_img'] = array_values($template_img);
         $result['page_type'] = $page_type;
         $result['page_type'] = $page_type;
 
 
         // $templateList = $this->getWebsiteTemplateList($data);
         // $templateList = $this->getWebsiteTemplateList($data);

File diff suppressed because it is too large
+ 0 - 0
runtime/container/scan.cache


+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-30626
+41284

+ 120 - 0
runtime/logs/hyperf.log

@@ -3373,3 +3373,123 @@
 [2025-02-06T14:37:23.251706+08:00] sql.INFO: [15.9] select * from `website` where `website`.`id` = '5' limit 1 [] []
 [2025-02-06T14:37:23.251706+08:00] sql.INFO: [15.9] select * from `website` where `website`.`id` = '5' limit 1 [] []
 [2025-02-06T14:37:23.267382+08:00] sql.INFO: [14.88] select `type` from `footer_category` where `website_id` = '5' [] []
 [2025-02-06T14:37:23.267382+08:00] sql.INFO: [14.88] select `type` from `footer_category` where `website_id` = '5' [] []
 [2025-02-06T14:37:23.283802+08:00] sql.INFO: [15.7] select `type` from `link` where `website_id` = '5' [] []
 [2025-02-06T14:37:23.283802+08:00] sql.INFO: [15.7] select `type` from `link` where `website_id` = '5' [] []
+[2025-02-06T16:04:46.893541+08:00] sql.INFO: [62.53] select * from `website` where `website`.`id` = '5' limit 1 [] []
+[2025-02-06T16:04:46.930233+08:00] sql.INFO: [18.68] select `page_type` from `website_template_info` where `website_id` = '5' limit 1 [] []
+[2025-02-06T16:04:51.514986+08:00] sql.INFO: [17.3] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:04:51.529360+08:00] sql.INFO: [13.68] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:04:51.548246+08:00] sql.INFO: [15.08] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:04:51.562539+08:00] sql.INFO: [13.59] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:06:58.116877+08:00] sql.INFO: [68.92] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:06:58.148783+08:00] sql.INFO: [14.72] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:06:58.170226+08:00] sql.INFO: [15.59] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:06:58.185328+08:00] sql.INFO: [14.16] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:10:52.861904+08:00] sql.INFO: [295.97] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:10:52.877041+08:00] sql.INFO: [14.2] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:10:52.894043+08:00] sql.INFO: [16] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:10:52.932846+08:00] sql.INFO: [37.73] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:10:56.274029+08:00] sql.INFO: [63.69] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:10:56.308084+08:00] sql.INFO: [15.26] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:10:56.328829+08:00] sql.INFO: [15.94] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:10:56.344654+08:00] sql.INFO: [15.1] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:11:26.730199+08:00] sql.INFO: [18.4] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:11:27.174485+08:00] sql.INFO: [443.42] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:11:27.190211+08:00] sql.INFO: [14.69] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:11:27.205510+08:00] sql.INFO: [14.32] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:11:37.009349+08:00] sql.INFO: [96.63] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:11:37.043519+08:00] sql.INFO: [13.53] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:11:37.064479+08:00] sql.INFO: [16.3] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:11:37.080752+08:00] sql.INFO: [15.19] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:11:39.799361+08:00] sql.INFO: [71.76] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:11:39.834778+08:00] sql.INFO: [16.42] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:11:39.857223+08:00] sql.INFO: [17.48] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:11:39.875710+08:00] sql.INFO: [17.81] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:11:49.839922+08:00] sql.INFO: [18.53] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:11:49.858113+08:00] sql.INFO: [17.24] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:11:49.876113+08:00] sql.INFO: [17.03] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:11:49.894754+08:00] sql.INFO: [17.86] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:11:53.159761+08:00] sql.INFO: [68.79] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:11:53.195060+08:00] sql.INFO: [16.28] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:11:53.213692+08:00] sql.INFO: [14.98] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:11:53.228419+08:00] sql.INFO: [14.02] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:10.732616+08:00] sql.INFO: [62.35] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:10.766316+08:00] sql.INFO: [16.14] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:10.784524+08:00] sql.INFO: [14.25] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:10.800210+08:00] sql.INFO: [14.7] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:14.098780+08:00] sql.INFO: [17.69] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:14.114958+08:00] sql.INFO: [15.09] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:14.132107+08:00] sql.INFO: [16.33] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:14.146852+08:00] sql.INFO: [13.96] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:15.084465+08:00] sql.INFO: [16.89] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:15.100233+08:00] sql.INFO: [14.94] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:15.118241+08:00] sql.INFO: [16.97] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:15.132853+08:00] sql.INFO: [13.61] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:16.056400+08:00] sql.INFO: [16.22] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:16.071331+08:00] sql.INFO: [14.03] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:16.089476+08:00] sql.INFO: [17.3] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:16.103542+08:00] sql.INFO: [13.06] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:16.882895+08:00] sql.INFO: [16.01] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:16.897867+08:00] sql.INFO: [14.24] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:16.916211+08:00] sql.INFO: [17.43] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:16.932942+08:00] sql.INFO: [15.89] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:23.656058+08:00] sql.INFO: [69.8] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:23.691090+08:00] sql.INFO: [15.33] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:23.713936+08:00] sql.INFO: [16.04] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:23.729166+08:00] sql.INFO: [14.43] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:55.499440+08:00] sql.INFO: [61.13] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:55.539284+08:00] sql.INFO: [21.98] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:55.563393+08:00] sql.INFO: [19.42] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:55.584687+08:00] sql.INFO: [20.44] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:12:59.121751+08:00] sql.INFO: [68.99] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:12:59.159626+08:00] sql.INFO: [16.43] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:12:59.182702+08:00] sql.INFO: [16.92] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:12:59.199391+08:00] sql.INFO: [15.81] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:13:09.945591+08:00] sql.INFO: [16.76] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:13:09.962954+08:00] sql.INFO: [16.63] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:13:09.980566+08:00] sql.INFO: [16.83] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:13:09.997992+08:00] sql.INFO: [16.66] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:13:10.967571+08:00] sql.INFO: [18.72] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:13:10.982602+08:00] sql.INFO: [14.16] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:13:11.002622+08:00] sql.INFO: [19.04] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:13:11.020540+08:00] sql.INFO: [16.78] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:13:14.148531+08:00] sql.INFO: [60.81] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:13:14.177476+08:00] sql.INFO: [13.25] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:13:14.198208+08:00] sql.INFO: [16.13] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:13:14.212816+08:00] sql.INFO: [13.81] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:13:58.690469+08:00] sql.INFO: [73.31] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:13:58.724698+08:00] sql.INFO: [14.88] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:13:58.747897+08:00] sql.INFO: [18.27] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:13:58.769908+08:00] sql.INFO: [21.31] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:14:02.944337+08:00] sql.INFO: [66.18] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:14:02.981504+08:00] sql.INFO: [16.05] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:14:03.003315+08:00] sql.INFO: [16.59] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:14:03.017961+08:00] sql.INFO: [13.88] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:14:10.995231+08:00] sql.INFO: [16.94] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:14:11.012074+08:00] sql.INFO: [15.87] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:14:11.028852+08:00] sql.INFO: [15.81] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:14:11.045674+08:00] sql.INFO: [15.79] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:14:20.444647+08:00] sql.INFO: [20.65] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:14:20.464560+08:00] sql.INFO: [18.95] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:14:20.485952+08:00] sql.INFO: [20.39] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:14:20.503966+08:00] sql.INFO: [16.83] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:15:27.066144+08:00] sql.INFO: [62.23] select * from `website` where `website`.`id` = '1' limit 1 [] []
+[2025-02-06T16:15:27.097281+08:00] sql.INFO: [15.72] select `page_type` from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:15:27.118257+08:00] sql.INFO: [16.58] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:15:27.135263+08:00] sql.INFO: [16.03] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"3"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T16:20:11.846544+08:00] sql.INFO: [359.85] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T16:20:16.513464+08:00] sql.INFO: [20.16] select * from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:20:16.540314+08:00] sql.INFO: [16.98] select `template`.`template_name`, `template`.`template_img`, `template`.`id` as `tid`, `template_class`.`name`, `template_class`.`id` as `class_id`, `website_template_info`.`page_type`, `website_template_info`.`website_id` from `website_template_info` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where (`website_template_info`.`website_id` = '1' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"3"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T16:20:18.983357+08:00] sql.INFO: [20.01] select * from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:20:19.012973+08:00] sql.INFO: [28.7] select `template`.`template_name`, `template`.`template_img`, `template`.`id` as `tid`, `template_class`.`name`, `template_class`.`id` as `class_id`, `website_template_info`.`page_type`, `website_template_info`.`website_id` from `website_template_info` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where (`website_template_info`.`website_id` = '1' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"3"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T16:20:25.472833+08:00] sql.INFO: [797.19] select * from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:20:25.492378+08:00] sql.INFO: [18.53] select `template`.`template_name`, `template`.`template_img`, `template`.`id` as `tid`, `template_class`.`name`, `template_class`.`id` as `class_id`, `website_template_info`.`page_type`, `website_template_info`.`website_id` from `website_template_info` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where (`website_template_info`.`website_id` = '1' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"3"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T16:20:37.680347+08:00] sql.INFO: [18.71] select count(*) as aggregate from `website` left join `website_template_info` on `website_template_info`.`website_id` = `website`.`id` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where `website`.`status` = '1' [] []
+[2025-02-06T16:20:37.700976+08:00] sql.INFO: [19.99] select `website_template_info`.`id`, `template_class`.`name`, `website`.`id` as `website_id`, `website`.`website_name`, `website`.`website_url`, `website_template_info`.`action_id`, `website_template_info`.`created_at`, `website_template_info`.`updated_at`, `website_template_info`.`page_type`, COALESCE(website_template_info.status, 0) as template_status, `template`.`template_name` from `website` left join `website_template_info` on `website_template_info`.`website_id` = `website`.`id` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where `website`.`status` = '1' order by `website_template_info`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:21:49.373958+08:00] sql.INFO: [70.44] select count(*) as aggregate from `website` left join `website_template_info` on `website_template_info`.`website_id` = `website`.`id` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where `website`.`status` = '1' [] []
+[2025-02-06T16:21:49.391964+08:00] sql.INFO: [17.22] select `website_template_info`.`id`, `template_class`.`name`, `website`.`id` as `website_id`, `website`.`website_name`, `website`.`website_url`, `website_template_info`.`action_id`, `website_template_info`.`created_at`, `website_template_info`.`updated_at`, `website_template_info`.`page_type`, COALESCE(website_template_info.status, 0) as template_status, `template`.`template_name` from `website` left join `website_template_info` on `website_template_info`.`website_id` = `website`.`id` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where `website`.`status` = '1' order by `website_template_info`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T16:22:11.858738+08:00] sql.INFO: [17.66] select * from `template` where `id` = '1' limit 1 [] []
+[2025-02-06T16:22:11.887888+08:00] sql.INFO: [28.21] select * from `website` where `id` = '1' limit 1 [] []
+[2025-02-06T16:22:11.916605+08:00] sql.INFO: [17.42] update `website_template_info` set `template_id` = '1', `action_id` = '2', `website_template_info`.`updated_at` = '2025-02-06 16:22:11' where `website_id` = '1' [] []
+[2025-02-06T16:22:16.912269+08:00] sql.INFO: [22.95] select * from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:22:17.146609+08:00] sql.INFO: [233.25] select `template`.`template_name`, `template`.`template_img`, `template`.`id` as `tid`, `template_class`.`name`, `template_class`.`id` as `class_id`, `website_template_info`.`page_type`, `website_template_info`.`website_id` from `website_template_info` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where (`website_template_info`.`website_id` = '1' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"3"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T16:24:43.470530+08:00] sql.INFO: [107.12] select * from `website_template_info` where `website_id` = '1' limit 1 [] []
+[2025-02-06T16:24:43.520333+08:00] sql.INFO: [18.62] select `template`.`template_name`, `template`.`template_img`, `template`.`id` as `tid`, `template_class`.`name`, `template_class`.`id` as `class_id`, `website_template_info`.`page_type`, `website_template_info`.`website_id` from `website_template_info` left join `template` on `template`.`id` = `website_template_info`.`template_id` left join `template_class` on `template_class`.`id` = `template`.`template_class_id` where (`website_template_info`.`website_id` = '1' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"3"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []

Some files were not shown because too many files changed in this diff