kevin_zhangl преди 2 години
родител
ревизия
eca2ac8409
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      frontendApi/modules/v1/models/LoginForm.php

+ 2 - 2
frontendApi/modules/v1/models/LoginForm.php

@@ -207,8 +207,8 @@ class LoginForm extends Model
             }
         }catch(\Exception $e){
             $transaction->rollBack();
-            $this->setError($e->getFile() . '  ' . $e->getLine() . '  ' . $e->getMessage());
-            return false;
+//            $this->setError($e->getFile() . '  ' . $e->getLine() . '  ' . $e->getMessage());
+            throw new Exception($e->getMessage());
         }
     }