15313670163 1 mês atrás
pai
commit
7339b8071b
1 arquivos alterados com 2 adições e 2 exclusões
  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
     public function addWebsiteSurveyVote(array $data): array
     {
     {
-        return Result::success($data);
+        // return Result::success($data);
         if(isset($data['website_id']) && !empty($data['website_id'])){
         if(isset($data['website_id']) && !empty($data['website_id'])){
             $website = Website::where('id',$data['website_id'])->first(); 
             $website = Website::where('id',$data['website_id'])->first(); 
             if(empty($website)){
             if(empty($website)){
@@ -607,7 +607,7 @@ class NewsService implements NewsServiceInterface
                     // return Result::success($choice['other']);
                     // return Result::success($choice['other']);
                     $choice_id = $data['choice_id'];
                     $choice_id = $data['choice_id'];
                     if(!empty($choice['other'])){
                     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)){
                         if(!empty($choice_id)){
                             $key = array_search($choice['other']['id'], $choice_id);
                             $key = array_search($choice['other']['id'], $choice_id);
                             if ($key!== false) {
                             if ($key!== false) {