kevin_zhangl 2 năm trước cách đây
mục cha
commit
eca2ac8409
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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());
         }
     }