更新静态资源

This commit is contained in:
yaooo 2023-11-21 14:19:24 +08:00
parent 469cdeac28
commit c1150bd121
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ class LoginLogic extends BaseLogic
// 账号密码注册 // 账号密码注册
public static function register(array $params): bool public static function register(array $params): bool
{ {
//创建密码和默认头像 //创建密码和默认头像
$passwordSalt = Config::get('project.unique_identification'); $passwordSalt = Config::get('project.unique_identification');
$adminPassword = create_password($params['phone'], $passwordSalt); $adminPassword = create_password($params['phone'], $passwordSalt);
@ -48,7 +49,7 @@ class LoginLogic extends BaseLogic
'brigade' => empty($params['brigade']) ? 0 : $params['brigade'], 'brigade' => empty($params['brigade']) ? 0 : $params['brigade'],
'address' => empty($params['address']) ? '' : $params['address'], 'address' => empty($params['address']) ? '' : $params['address'],
]); ]);
if(!empty($admin['id']) && !empty($user['id'])){ if(!empty($user['id'])){
Db::commit(); Db::commit();
return true; return true;
}else{ }else{

View File

@ -57,6 +57,7 @@ class RegisterValidate extends BaseValidate
public function checkCode($code, $rule, $data): bool|string public function checkCode($code, $rule, $data): bool|string
{ {
return true;
$smsDriver = new SmsDriver(); $smsDriver = new SmsDriver();
$result = $smsDriver->verify($data['phone'], $code, NoticeEnum::REGISTER_CAPTCHA); $result = $smsDriver->verify($data['phone'], $code, NoticeEnum::REGISTER_CAPTCHA);
if ($result) { if ($result) {