This commit is contained in:
parent
fbd2c28a81
commit
928b2f5807
|
@ -120,13 +120,10 @@ module.exports = function(Self) {
|
|||
const options = Object.assign({}, info.options);
|
||||
for (const param in options)
|
||||
params[param] = options[param];
|
||||
if (info.options?.usesPhone)
|
||||
await Self.app.models.Sms.send({req: {accessToken: info.accessToken}}, +info.options.phone, params.url);
|
||||
else {
|
||||
const email = new Email(options.emailTemplate, params);
|
||||
|
||||
return email.send();
|
||||
}
|
||||
const email = new Email(options.emailTemplate, params);
|
||||
|
||||
return email.send();
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue