注销验证码 交友结束完善

This commit is contained in:
2025-12-10 09:56:00 +08:00
parent 619b7c36af
commit 0eaf84fbb3
2 changed files with 27 additions and 21 deletions

View File

@@ -34,8 +34,10 @@ class Sms extends Api
//检测是否注销过
$config_time = get_system_config_value('cancel_no_login');
$is_del = db::name('user')->where(['mobile' => $mobile,'delete_time' => ['<>', 0]])->find();
if (time() - $is_del['delete_time'] < $config_time * 24 * 3600) {//30天内注销过
return V(0, '注销30天内不可操作。');
if ($is_del) {
if (time() - $is_del['delete_time'] < $config_time * 24 * 3600) {//30天内注销过
return V(0, '注销30天内不可操作。');
}
}
//频率控制