rkljw před 1 měsícem
rodič
revize
e993b104c0

+ 19 - 0
app/JsonRpc/WebsiteService.php

@@ -2430,4 +2430,23 @@ class WebsiteService implements WebsiteServiceInterface
         }
     }
 
+    /**
+     * 修改网站栏目排序
+     * @param array $data
+     * @return array
+     */
+    public function upWebsiteCategorySort(array $data): array
+    {
+        $where = [
+            'website_id' => $data['website_id'],
+            'id' => $data['id'],
+        ];
+        $result = WebsiteCategory::where($where)->update($data);
+        if ($result) {
+            return Result::success($result);
+        } else {
+            return Result::error("更新失败", 0);
+        }
+    }
+
 }

+ 6 - 0
app/JsonRpc/WebsiteServiceInterface.php

@@ -109,4 +109,10 @@ interface WebsiteServiceInterface
      */
     public function getAllCategory(array $data): array;
 
+    /**
+     * 修改网站栏目排序
+     * @param array $data
+     * @return array
+     */
+    public function upWebsiteCategorySort(array $data): array;
 }

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
runtime/container/scan.cache


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů