소스 검색

Merge branch 'web_sannong_fr' into dev

15313670163 1 개월 전
부모
커밋
d54f59ea79
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/JsonRpc/NewsService.php

+ 2 - 2
app/JsonRpc/NewsService.php

@@ -848,7 +848,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)){
@@ -890,7 +890,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) {