Commit 3c5faecb authored by hujun's avatar hujun

验证用户是否存在

parent 8059fc4e
...@@ -493,4 +493,17 @@ class AAgents extends BaseModel ...@@ -493,4 +493,17 @@ class AAgents extends BaseModel
->where($where) ->where($where)
->find(); ->find();
} }
/**
* 验证用户是否存在
*
* @param $phone
* @return int|string
*/
public function getAgentExist($phone) {
return $this->where([
'phone' => $phone,
'status' => 0
])->count();
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment