瀏覽代碼

修改-编辑底部导航名称

15313670163 2 月之前
父節點
當前提交
4a33519573
共有 4 個文件被更改,包括 12 次插入2 次删除
  1. 1 1
      app/JsonRpc/FooterService.php
  2. 0 0
      runtime/container/scan.cache
  3. 1 1
      runtime/hyperf.pid
  4. 10 0
      runtime/logs/hyperf.log

+ 1 - 1
app/JsonRpc/FooterService.php

@@ -99,7 +99,7 @@ class FooterService implements FooterServiceInterface
                 'web'=>$web
             ];
         }else{
-            $all_categories = FooterCategory::where('website_id',$data['website_id'])->pluck('name')->toArray();
+            $all_categories = FooterCategory::where('website_id',$data['website_id'])->where('id','!=',$data['id'])->pluck('name')->toArray();
             // 检查修改后的数据是否与已有数据重复
             if (in_array($data['name'], $all_categories)) {
                 return Result::error("修改后的底部导航名称已存在!");

文件差異過大導致無法顯示
+ 0 - 0
runtime/container/scan.cache


+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-15680
+58903

+ 10 - 0
runtime/logs/hyperf.log

@@ -3727,3 +3727,13 @@
 [2025-02-10T12:18:56.932677+08:00] sql.INFO: [12.99] select count(*) as aggregate from `sector` where `template_id` = '2' [] []
 [2025-02-10T12:18:56.947348+08:00] sql.INFO: [14.17] select count(*) as aggregate from `sector` where `template_id` = '2' [] []
 [2025-02-10T12:18:56.962643+08:00] sql.INFO: [14.87] select * from `sector` where `template_id` = '2' limit 1 [] []
+[2025-02-17T17:23:33.529167+08:00] sql.INFO: [64.49] select * from `footer_category` where `id` = '6' limit 1 [] []
+[2025-02-17T17:23:33.576892+08:00] sql.INFO: [15.52] select `name` from `footer_category` where `website_id` = '2' and `id` != '6' [] []
+[2025-02-17T17:23:33.606497+08:00] sql.INFO: [16.04] select * from `website` where `id` = '2' limit 1 [] []
+[2025-02-17T17:23:33.752477+08:00] sql.INFO: [14.82] update `footer_category` set `name` = '免责声明', `website_id` = '2', `id` = '6', `footer_category`.`updated_at` = '2025-02-17 17:23:33' where `id` = '6' [] []
+[2025-02-17T17:23:44.732514+08:00] sql.INFO: [15.89] select * from `footer_category` where `id` = '6' limit 1 [] []
+[2025-02-17T17:23:44.748866+08:00] sql.INFO: [15.26] select `name` from `footer_category` where `website_id` = '2' and `id` != '6' [] []
+[2025-02-17T17:23:54.778403+08:00] sql.INFO: [17.63] select * from `footer_category` where `id` = '6' limit 1 [] []
+[2025-02-17T17:23:54.794930+08:00] sql.INFO: [15.87] select `name` from `footer_category` where `website_id` = '2' and `id` != '6' [] []
+[2025-02-17T17:23:54.813886+08:00] sql.INFO: [18.38] select * from `website` where `id` = '2' limit 1 [] []
+[2025-02-17T17:23:54.829065+08:00] sql.INFO: [14.41] update `footer_category` set `name` = '免责声明', `website_id` = '2', `id` = '6', `footer_category`.`updated_at` = '2025-02-17 17:23:54' where `id` = '6' [] []

部分文件因文件數量過多而無法顯示