rkljw il y a 4 mois
Parent
commit
2b7689fbda
2 fichiers modifiés avec 1 ajouts et 1 suppressions
  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("删除失败");
         }

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
runtime/container/scan.cache


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff