From 80991c76c04b128eab7e76e59c69ea0ee255b6f5 Mon Sep 17 00:00:00 2001 From: raipen Date: Thu, 23 Nov 2023 22:48:34 +0900 Subject: [PATCH] feat: add testing phone number --- src/services/userService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/userService.ts b/src/services/userService.ts index 5a258aa..f362f48 100644 --- a/src/services/userService.ts +++ b/src/services/userService.ts @@ -24,7 +24,7 @@ export default { } let certificationCode = '123456'; /* istanbul ignore next */ - if(process.env.NODE_ENV === 'production'){ + if(process.env.NODE_ENV === 'production'&&phone !== '01011112222'){ certificationCode = crypto.randomInt(100000, 999999).toString(); sendSMS(phone, 'SMS', `[카페포스] 인증번호는 ${certificationCode}입니다.`); } @@ -90,7 +90,7 @@ export default { phoneNumber: certificatedPhone.phone, }, }); - if (!user) { + if (!user||businessRegistrationNumber === '0000') { user = await this.create({ businessRegistrationNumber, certificatedPhoneToken,