开发者认证

This commit is contained in:
JaguarJack
2020-07-13 17:04:35 +08:00
parent 7ef4efa37a
commit 04e008fcfa
3 changed files with 35 additions and 14 deletions

View File

@@ -15,20 +15,25 @@ use catcher\base\CatchModel as Model;
class Developers extends Model
{
protected $name = 'developers';
protected $name = 'developers';
protected $field = [
'id', //
'username', // 用户名
'password', // 密码
'mobile', // 手机号
'id_card', // 身份证
'alipay_account', // 支付宝账户
'status', // 1 待认证 1 已认证
'created_at', // 创建时间
'updated_at', // 更新时间
'id', //
'username', // 用户名
'password', // 密码
'mobile', // 手机号
'id_card', // 身份证
'alipay_account', // 支付宝账户
'status', // 1 待认证 1 已认证
'created_at', // 创建时间
'updated_at', // 更新时间
'deleted_at', // 软删除
];
public function setPasswordAttr($value)
{
return password_hash($value, PASSWORD_DEFAULT);
}
}