Commit 2bf431d9 authored by Hsinli's avatar Hsinli

addd

parent 5fb1f5d3
Pipeline #13529 passed with stage
in 6 seconds
......@@ -74,18 +74,19 @@ class ApplyService extends Service {
let codeKey = 'mine:credit:black:code' + inputParams.phone;
await app.redis.set(codeKey, code, 'EX', 60 * 5);//5分钟有效时间
let ret = {
code: 1,
msg: '短信发送成功'
}
let smsParams = {
phone: inputParams.phone,
content: '【51公积金】您本次操作的短信验证码为' + code + ',5分钟内有效。谨慎保管,切勿告诉他人。'
}
ctx.logger.info(smsParams);
return smsParams;
// let smsResult = await ctx.service.common.sms.sendSms(smsParams);
// let ret = {
// code: smsResult.status === 201 ? 1 : 0,
// msg: smsResult.status === 201 ? '短信发送成功' : '短信发送失败'
// }
// return ret;
// ret.code = smsResult.status === 201 ? 1 : 0;
// ret.msg = smsResult.status === 201 ? '短信发送成功' : '短信发送失败';
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment