fix: sms bug
This commit is contained in:
parent
7ea972bd06
commit
17c04dc616
|
@ -127,7 +127,6 @@ export class UserController {
|
|||
// 防止接口调用 end
|
||||
const code = Math.floor(Math.random() * 9000 + 1000);
|
||||
await this.redisService.set('' + phoneNumbers, code, 'EX', 60);
|
||||
if (process.env.EGG_SERVER_ENV === 'prod')
|
||||
await this.smsService.send({ code, phoneNumbers });
|
||||
return { code: BizCode.OK };
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user