Просмотр исходного кода

获取已搭建的模板信息

15313670163 4 месяцев назад
Родитель
Сommit
b55bf6af7c
3 измененных файлов с 147 добавлено и 11 удалено
  1. 16 10
      app/JsonRpc/WebsiteService.php
  2. 1 1
      runtime/hyperf.pid
  3. 130 0
      runtime/logs/hyperf.log

+ 16 - 10
app/JsonRpc/WebsiteService.php

@@ -1440,17 +1440,23 @@ class WebsiteService implements WebsiteServiceInterface
         // return Result::success($result);
         $result['template_img'] = $template_img;
         $result['page_type'] = $page_type;
-        // 查找 $template 在 $templates 数组中的索引
-        // $index = array_search($template['template_id'],  array_column($data['templates'], 'id'));
-
-        // 如果找到了 $template,则计算它所在的页码
-        // if ($index !== false) {
-        //     $page = floor($index / $data['pageSize']) + 1;
-        //     $result['page'] = $page;
-        //     echo "查询到的 template 在第 $page 页";
-        // } else {
-        //     echo "未找到查询到的 template";
+
+        // $templateList = $this->getWebsiteTemplateList($data);
+        // $count = $templateList['data']['count']??'';
+        // $pages = $count / $data['pageSize'];
+        // $found = false;
+        // while ($pages && !$found) {
+        //     $templates = $this->getWebsiteTemplateList($pages,$data['pageSize']);
+        //     $index = array_search($template['template_id'], array_column($templates['rows'], 'id'));
+        //     if ($index !== false) {
+        //         $found = true;
+        //         $result['page'] = $pages;
+        //         $pages = 0;
+        //         // echo "查询到的 template 在第 $page 页";
+        //     }
+        //     $pages--;
         // }
+
         if(empty($result)){
             return Result::error("没有查找到相关数据",0);
         }else{

+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-13125
+28796

+ 130 - 0
runtime/logs/hyperf.log

@@ -3214,3 +3214,133 @@
 [2025-02-06T08:54:01.858431+08:00] sql.INFO: [16] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
 [2025-02-06T09:05:10.544595+08:00] sql.INFO: [274.54] 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-06T09:05:10.588610+08:00] sql.INFO: [40.17] 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-06T13:57:50.384814+08:00] sql.INFO: [2182.64] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:57:50.645021+08:00] sql.INFO: [243.27] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:57:50.883963+08:00] sql.INFO: [232.47] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:57:50.902320+08:00] sql.INFO: [16.61] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:57:51.140039+08:00] sql.INFO: [232.26] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:57:51.157214+08:00] sql.INFO: [16.21] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:58:20.635130+08:00] sql.INFO: [261.26] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:20.654998+08:00] sql.INFO: [18.89] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:58:20.882570+08:00] sql.INFO: [226.85] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:58:21.114874+08:00] sql.INFO: [231.31] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:21.347531+08:00] sql.INFO: [230.8] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:58:21.366851+08:00] sql.INFO: [17.47] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:58:24.933458+08:00] sql.INFO: [271.35] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:24.967630+08:00] sql.INFO: [16.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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:58:24.988042+08:00] sql.INFO: [14.79] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:58:25.003359+08:00] sql.INFO: [14.68] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:25.022519+08:00] sql.INFO: [14.32] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:58:25.036953+08:00] sql.INFO: [13.77] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:58:36.701050+08:00] sql.INFO: [716.71] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:36.947720+08:00] sql.INFO: [244.79] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:58:36.965942+08:00] sql.INFO: [16.44] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:58:36.981261+08:00] sql.INFO: [14.28] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:36.997423+08:00] sql.INFO: [15.21] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:58:37.013215+08:00] sql.INFO: [14.85] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:58:40.507898+08:00] sql.INFO: [494.55] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:40.540177+08:00] sql.INFO: [16.5] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:58:40.558437+08:00] sql.INFO: [13.8] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:58:40.572795+08:00] sql.INFO: [13.65] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:58:40.591403+08:00] sql.INFO: [14.28] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:58:40.606552+08:00] sql.INFO: [14.42] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:59:20.283492+08:00] sql.INFO: [60.09] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:20.317513+08:00] sql.INFO: [16.75] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:59:20.337814+08:00] sql.INFO: [14.81] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:59:20.352930+08:00] sql.INFO: [14.41] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:20.371480+08:00] sql.INFO: [14.47] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:59:20.600180+08:00] sql.INFO: [227.97] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:59:22.097444+08:00] sql.INFO: [277.52] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:22.116596+08:00] sql.INFO: [17.87] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:59:22.133977+08:00] sql.INFO: [16.2] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:59:22.148737+08:00] sql.INFO: [13.47] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:22.164772+08:00] sql.INFO: [15.33] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:59:22.392353+08:00] sql.INFO: [226.67] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:59:31.055370+08:00] sql.INFO: [305.5] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:31.074411+08:00] sql.INFO: [17.72] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:59:31.090330+08:00] sql.INFO: [15.01] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:59:31.320443+08:00] sql.INFO: [229.19] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:31.337121+08:00] sql.INFO: [15.69] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:59:31.353144+08:00] sql.INFO: [15.06] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:59:34.423905+08:00] sql.INFO: [108.28] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:34.458322+08:00] sql.INFO: [17.28] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}')) limit 1 [] []
+[2025-02-06T13:59:34.480710+08:00] sql.INFO: [17.76] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:59:34.496239+08:00] sql.INFO: [14.8] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:34.514703+08:00] sql.INFO: [13.79] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:59:34.530989+08:00] sql.INFO: [15.46] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}')) [] []
+[2025-02-06T13:59:51.140260+08:00] sql.INFO: [287.37] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:51.155408+08:00] sql.INFO: [13.89] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T13:59:51.171917+08:00] sql.INFO: [15.51] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T13:59:51.400969+08:00] sql.INFO: [228.17] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T13:59:51.634371+08:00] sql.INFO: [231.68] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T13:59:51.648845+08:00] sql.INFO: [13.31] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:01:42.292889+08:00] sql.INFO: [62.48] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:42.325298+08:00] sql.INFO: [15.34] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:01:42.346209+08:00] sql.INFO: [16.89] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:01:42.362169+08:00] sql.INFO: [14.99] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:42.381636+08:00] sql.INFO: [14.9] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:01:42.395496+08:00] sql.INFO: [12.97] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:01:43.676403+08:00] sql.INFO: [16.37] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:43.693003+08:00] sql.INFO: [15.58] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:01:43.719409+08:00] sql.INFO: [25.68] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:01:43.733900+08:00] sql.INFO: [13.61] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:43.751479+08:00] sql.INFO: [16.48] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:01:43.765022+08:00] sql.INFO: [12.48] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:01:47.157763+08:00] sql.INFO: [69.52] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:47.192118+08:00] sql.INFO: [16.97] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:01:47.212729+08:00] sql.INFO: [16.01] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:01:47.228357+08:00] sql.INFO: [14.95] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:47.248521+08:00] sql.INFO: [16.09] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:01:47.266514+08:00] sql.INFO: [17.09] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:01:58.843961+08:00] sql.INFO: [16.5] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:58.862658+08:00] sql.INFO: [17.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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:01:58.879305+08:00] sql.INFO: [15.77] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:01:58.895526+08:00] sql.INFO: [15.26] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:01:58.921140+08:00] sql.INFO: [24.71] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:01:58.938518+08:00] sql.INFO: [16.2] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:02:02.525041+08:00] sql.INFO: [280.21] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:02.558197+08:00] sql.INFO: [16.43] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:02:02.579488+08:00] sql.INFO: [17.06] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:02:02.596077+08:00] sql.INFO: [15.71] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:02.617818+08:00] sql.INFO: [17.4] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:02:02.635174+08:00] sql.INFO: [16.25] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:02:14.870171+08:00] sql.INFO: [18.73] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:15.104600+08:00] sql.INFO: [233.14] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:02:15.123537+08:00] sql.INFO: [17.91] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:02:15.141827+08:00] sql.INFO: [17.49] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:15.159446+08:00] sql.INFO: [16.7] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:02:15.176010+08:00] sql.INFO: [15.67] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:02:16.188318+08:00] sql.INFO: [18.28] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:16.207027+08:00] sql.INFO: [17.48] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:02:16.225947+08:00] sql.INFO: [18.15] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:02:16.242283+08:00] sql.INFO: [15.62] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:16.260298+08:00] sql.INFO: [17.24] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:02:16.279284+08:00] sql.INFO: [17.94] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:02:19.036450+08:00] sql.INFO: [69.94] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:19.073198+08:00] sql.INFO: [18.02] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:02:19.093831+08:00] sql.INFO: [16.59] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:02:19.109812+08:00] sql.INFO: [15.13] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:19.131556+08:00] sql.INFO: [17.59] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:02:19.147503+08:00] sql.INFO: [15.03] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:02:21.694998+08:00] sql.INFO: [16.79] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:21.714359+08:00] sql.INFO: [18.17] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:02:21.731414+08:00] sql.INFO: [16.37] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:02:21.748399+08:00] sql.INFO: [16.11] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:21.765577+08:00] sql.INFO: [16.39] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:02:21.781501+08:00] sql.INFO: [15.18] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:02:45.587996+08:00] sql.INFO: [16.17] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:02:45.605956+08:00] sql.INFO: [16.98] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:02:45.623459+08:00] sql.INFO: [16.53] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 10 offset 0 [] []
+[2025-02-06T14:02:45.641878+08:00] sql.INFO: [17.52] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:08:56.973073+08:00] sql.INFO: [63.49] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:08:57.005483+08:00] sql.INFO: [16.68] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:08:57.025058+08:00] sql.INFO: [15.28] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:08:57.039618+08:00] sql.INFO: [13.7] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:08:57.058998+08:00] sql.INFO: [14.81] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:08:57.073800+08:00] sql.INFO: [14.09] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []
+[2025-02-06T14:08:59.356100+08:00] sql.INFO: [17.06] select * from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:08:59.372190+08:00] sql.INFO: [14.87] 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` = '2' and `template_id` is not null) and (json_contains(`template`.`template_img`, '{"value":"1"}') or json_contains(`template`.`template_img`, '{"value":"2"}') or json_contains(`template`.`template_img`, '{"value":"7"}') or json_contains(`template`.`template_img`, '{"value":"5"}') or json_contains(`template`.`template_img`, '{"value":"6"}')) limit 1 [] []
+[2025-02-06T14:08:59.388350+08:00] sql.INFO: [15.13] select * from `website` where `website`.`id` = '2' limit 1 [] []
+[2025-02-06T14:08:59.404304+08:00] sql.INFO: [15.01] select `page_type` from `website_template_info` where `website_id` = '2' limit 1 [] []
+[2025-02-06T14:08:59.419814+08:00] sql.INFO: [14.54] select * from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) order by `template`.`updated_at` desc limit 1 offset 0 [] []
+[2025-02-06T14:08:59.436623+08:00] sql.INFO: [15.85] select count(*) as aggregate from `template` where (json_contains(`template_img`, '{"value":"1"}') and json_contains(`template_img`, '{"value":"2"}') and json_contains(`template_img`, '{"value":"7"}') and json_contains(`template_img`, '{"value":"5"}') and json_contains(`template_img`, '{"value":"6"}')) [] []