feat: 响应式

This commit is contained in:
mozzie 2023-03-28 13:52:48 +08:00
commit 3754811e60

View File

@ -127,7 +127,6 @@ export class UserController {
// 防止接口调用 end // 防止接口调用 end
const code = Math.floor(Math.random() * 9000 + 1000); const code = Math.floor(Math.random() * 9000 + 1000);
await this.redisService.set('' + phoneNumbers, code, 'EX', 60); await this.redisService.set('' + phoneNumbers, code, 'EX', 60);
if (process.env.EGG_SERVER_ENV === 'prod')
await this.smsService.send({ code, phoneNumbers }); await this.smsService.send({ code, phoneNumbers });
return { code: BizCode.OK }; return { code: BizCode.OK };
} catch (error) { } catch (error) {