]> _ Git - cubeextranet.git/commitdiff
wip #5229 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 1 Jun 2022 07:53:50 +0000 (07:53 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 1 Jun 2022 07:53:50 +0000 (07:53 +0000)
inc/ws/Controlleur/class.ws.services.php

index fdc38ff898bd768e82c1e9965e1917dd665a8c97..9f5485b1e884e2d86aafb98acb8232084d686a1e 100644 (file)
@@ -1371,8 +1371,6 @@ class wsServices extends cubeFlashGateway
 
     public function yslSurvey()
     {
-
-
         global $core;
         $this->outputXML = false;
 
@@ -1386,17 +1384,23 @@ class wsServices extends cubeFlashGateway
             $c->country = $_POST['country'];
             $c->function = $_POST['function'];
             $c->insert();
-            $res = '1';
 
-            $client = new Client(['timeout' => 10.0]);
-            $client->request('post', 'https://suivi.ysl-retailhandbook.com/importCSV.php', ['form_params' => [
-                'Fluidbook_ID' => $_POST['Fluidbook_ID'],
-                'page' => $_POST['page'],
-                'rating' => $_POST['rating'],
-                'feedback' => $_POST['feedback'],
-                'country' => $_POST['country'],
-                'function' => $_POST['function'],
-            ]]);
+            try {
+                $client = new Client(['timeout' => 10.0]);
+                $client->request('post', 'https://suivi.ysl-retailhandbook.com/importCSV.php', ['form_params' => [
+                    'Fluidbook_ID' => $_POST['Fluidbook_ID'],
+                    'page' => $_POST['page'],
+                    'rating' => $_POST['rating'],
+                    'feedback' => $_POST['feedback'],
+                    'country' => $_POST['country'],
+                    'function' => $_POST['function'],
+                    'title' => $_POST['title'],
+                ]]);
+            } catch (Exception $e1) {
+
+            }
+
+            $res = '1';
 
         } catch (Exception $e) {
             $res = '0';