Commit de7f088d authored by Hsinli's avatar Hsinli

addd

parent 2bf431d9
Pipeline #13531 passed with stage
in 23 seconds
......@@ -56,9 +56,9 @@ class ApplyService extends Service {
times = 0;
}
times++;
if (times >= 6) {
ctx.failed('今日获取验证码次数过多,请明日再试');
}
// if (times >= 6) {
// ctx.failed('今日获取验证码次数过多,请明日再试');
// }
let pexpire = new Date(moment().add(1, 'days').format('YYYY-MM-DD')).getTime();
await app.redis.set(timesKey, times, 'PX', pexpire);//今日有效
......@@ -76,7 +76,7 @@ class ApplyService extends Service {
let ret = {
code: 1,
msg: '短信发送成功'
msg: '短信发送成功',
}
let smsParams = {
phone: inputParams.phone,
......
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