Browse Source

Update UserModel.class.php

star7th 5 years ago
parent
commit
6af8986972
1 changed files with 9 additions and 0 deletions
  1. 9 0
      server/Application/Api/Model/UserModel.class.php

+ 9 - 0
server/Application/Api/Model/UserModel.class.php

@@ -103,4 +103,13 @@ class UserModel extends BaseModel {
 
     }
 
+    public function checkDbOk(){
+        $ret = $this->find() ;
+        if ($ret) {
+            return true; 
+        }else{
+            return false; 
+        }
+    }
+
 }