Ken před 1 týdnem
rodič
revize
9aa845c7b6
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/Http/Controllers/api/Fingerprint.php

+ 2 - 2
app/Http/Controllers/api/Fingerprint.php

@@ -25,9 +25,9 @@ class Fingerprint extends BaseController
             ]);
             PublicService:: setVisitorId($params['member_id'], $params['visitor_id']);
         } catch (ValidationException $e) {
-            return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
+            return $this->error($e->validator->errors()->first());
         } catch (Exception $e) {
-            return $this->error(HttpStatus::CUSTOM_ERROR, $e->getMessage());
+            return $this->error($e->getMessage());
         }
         return $this->success();
     }