rkljw 4 mēneši atpakaļ
vecāks
revīzija
2b7689fbda
2 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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("删除失败");
         }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
runtime/container/scan.cache


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels