15313670163 1 ヶ月 前
コミット
7339b8071b
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/JsonRpc/NewsService.php

+ 2 - 2
app/JsonRpc/NewsService.php

@@ -565,7 +565,7 @@ class NewsService implements NewsServiceInterface
      */
     public function addWebsiteSurveyVote(array $data): array
     {
-        return Result::success($data);
+        // return Result::success($data);
         if(isset($data['website_id']) && !empty($data['website_id'])){
             $website = Website::where('id',$data['website_id'])->first(); 
             if(empty($website)){
@@ -607,7 +607,7 @@ class NewsService implements NewsServiceInterface
                     // return Result::success($choice['other']);
                     $choice_id = $data['choice_id'];
                     if(!empty($choice['other'])){
-                        array_push($data['choice_id'],$choice['other']['other_id']);
+                        // array_push($data['choice_id'],$choice['other']['other_id']);
                         if(!empty($choice_id)){
                             $key = array_search($choice['other']['id'], $choice_id);
                             if ($key!== false) {