diff --git a/src/modules/user/service/sms.ts b/src/modules/user/service/sms.ts index 57c13a9..0afc4b9 100644 --- a/src/modules/user/service/sms.ts +++ b/src/modules/user/service/sms.ts @@ -40,7 +40,7 @@ export class UserSmsService extends BaseService { */ async checkCode(phone, code) { const cacheCode = await this.cacheManager.get(`sms:${phone}`); - if (cacheCode === code) { + if (cacheCode == code) { return true; } return false;