فهرست منبع

Merge branch 'web_sannong_fr' into dev

15313670163 1 ماه پیش
والد
کامیت
0b9bf1122f
1فایلهای تغییر یافته به همراه2 افزوده شده و 9 حذف شده
  1. 2 9
      app/JsonRpc/NewsService.php

+ 2 - 9
app/JsonRpc/NewsService.php

@@ -834,7 +834,7 @@ class NewsService implements NewsServiceInterface
                     if (empty($result)) {
                         return Result::error("添加失败", 0);
                     }
-                    return Result::success($data);
+                    return Result::success($result);
                 }
             }
             return Result::error("添加失败", 0);
@@ -849,14 +849,7 @@ class NewsService implements NewsServiceInterface
      */
     public function addWebsiteSurveyVote(array $data): array
     {
-        // $choice_id = $data['choice_id'];
-        // return Result::success($data);
-        // if(is_array($data['choice_id'])){
-        //     if (!is_array($data['choice_id'])) {
-        //         $data['choice_id'] = [$data['choice_id']];
-        //     }
-        //     $data['choice_id'] = array_map('intval', $data['choice_id']);
-        // }
+
         if(isset($data['website_id']) && !empty($data['website_id'])){
             $website = Website::where('id',$data['website_id'])->first(); 
             if(empty($website)){