Commit d138f92c authored by Hsinli's avatar Hsinli

addd

parent 3ce3d9a9
Pipeline #14324 passed with stage
in 6 seconds
......@@ -158,8 +158,8 @@ class ApplyService extends Service {
times = 0;
}
times++;
if (times >= 6) {
// ctx.failed('今日获取验证码次数过多,请明日再试');
if (times >= 11) {
ctx.failed('今日获取验证码次数过多,请明日再试');
}
let pexpire = new Date(moment().add(1, 'days').format('YYYY-MM-DD')).getTime();
await app.redis.set(timesKey, times, 'PX', pexpire);//今日有效
......
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