Ken hai 1 semana
pai
achega
9aa845c7b6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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();
     }