AI 1 月之前
父節點
當前提交
e3d09f75a4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/JsonRpc/WebsiteService.php

+ 2 - 1
app/JsonRpc/WebsiteService.php

@@ -909,6 +909,7 @@ class WebsiteService implements WebsiteServiceInterface
     {
         $website_id = $data['website_id'];
         $result = WebsiteCategory::where(['website_id' => $website_id])->delete();
+
         if ($result) {
             return Result::success($result);
         } else {
@@ -1175,7 +1176,7 @@ class WebsiteService implements WebsiteServiceInterface
         if (isset($data['website_id']) && !empty($data['website_id'])) {
             array_push($where, ['website_id', '=', $data['website_id']]);
         }
-        if (isset($data['pid']) && !empty($data['pid'])) {
+        if (isset($data['pid'])) {
             array_push($where, ['pid', '=', $data['pid']]);
         }
         $list = WebsiteCategory::query()->where($where)->get();