Browse Source

短信恢复

laiguoran 4 years ago
parent
commit
c34cece8c7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/service/project_account.js

+ 3 - 3
app/service/project_account.js

@@ -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;
             }