revert: remove mark_used parameter (API used by other systems)

This commit is contained in:
yumoqing 2026-05-29 11:38:37 +08:00
parent bbd10a6471
commit 8a2a7d02ed

View File

@ -182,7 +182,7 @@ class SMSEngine:
else:
return None
async def check_sms_code(self, code_id: str, vcode: str, mark_used: bool = True) -> bool:
async def check_sms_code(self, code_id: str, vcode: str) -> bool:
env = ServerEnv()
async with get_sor_context(env, 'smssend') as sor:
code_info = await sor.R('validatecode', {'id': code_id})
@ -204,8 +204,7 @@ class SMSEngine:
debug(f'check_sms_code():timeout ')
return False
if mark_used:
await sor.U('validatecode', {'id': code_id, 'del_flg': '1'})
await sor.U('validatecode', {'id': code_id, 'del_flg': '1'})
debug(f'check_sms_code(): return True ')
return True