rkljw 4 ヶ月 前
コミット
2b7689fbda
2 ファイル変更1 行追加1 行削除
  1. 1 1
      app/JsonRpc/NewsService.php
  2. 0 0
      runtime/container/scan.cache

+ 1 - 1
app/JsonRpc/NewsService.php

@@ -221,7 +221,7 @@ class NewsService implements NewsServiceInterface
      */
     public function delArticle(array $data): array
     {
-        $result = Article::where($data)->update(['status'=>404]);
+        $result = Article::where($data)->delete();
         if(!$result){
             return Result::error("删除失败");
         }

ファイルの差分が大きいため隠しています
+ 0 - 0
runtime/container/scan.cache


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません