|
@@ -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) {
|