|
@@ -504,9 +504,9 @@ module.exports = app => {
|
|
|
const sms = new SMS(this.ctx);
|
|
|
// const content = '【纵横计量支付】验证码:' + randString + ',15分钟内有效。';
|
|
|
// result = await sms.send(mobile, content);
|
|
|
- // result = await sms.aliSend(mobile, { code: randString }, SmsAliConst.template.yzm);
|
|
|
- console.log(randString);
|
|
|
- result = true;
|
|
|
+ result = await sms.aliSend(mobile, { code: randString }, SmsAliConst.template.yzm);
|
|
|
+ // console.log(randString);
|
|
|
+ // result = true;
|
|
|
} catch (error) {
|
|
|
result = false;
|
|
|
}
|