rkljw 3 달 전
부모
커밋
bea5c823d0
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/JsonRpc/NewsService.php
  2. 1 1
      runtime/hyperf.pid

+ 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("删除失败");
         }

+ 1 - 1
runtime/hyperf.pid

@@ -1 +1 @@
-19001
+47500