\UserModel

Summary

Methods
Properties
Constants
init()
getAuthor()
Signin()
Register()
CheckAccount()
CheckEmail()
upUserStatus()
No public properties found
No constants found
__construct()
$db
$model
N/A
__clone()
password()
No private properties found
N/A

Properties

$model

$model : 

Type

Methods

init()

init() 

getAuthor()

getAuthor(integer|string  $userId) : array

Parameters

integer|string $userId

Returns

array

Signin()

Signin(string  $account, string  $passwd) : array|false

用户登录(登录成功放回用户数组, 失败放回 false)

Parameters

string $account

账号

string $passwd

密码

Returns

array|false

Register()

Register(  $account,   $email,   $password) : array|false

注册用户

Parameters

$account
$email
$password

Returns

array|false

CheckAccount()

CheckAccount(string  $account) : boolean

检查账号是否可以注册

Parameters

string $account

Returns

boolean

CheckEmail()

CheckEmail(string  $email) : boolean

检查邮箱是否可以注册

Parameters

string $email

Returns

boolean

upUserStatus()

upUserStatus(string  $uuid, boolean  $lock = false) : boolean

更新用户状态

Parameters

string $uuid

用户UUID

boolean $lock

是否锁定用户(默认未锁定)

Returns

boolean

__construct()

__construct() 

__clone()

__clone() 

password()

password(  $password) 

Parameters

$password