Commit 3d8a2a75 authored by 任国军's avatar 任国军
parents 42fd88b3 3f6f91fb
Pipeline #14422 passed with stage
in 34 seconds
......@@ -159,7 +159,7 @@ class ApplyService extends Service {
}
times++;
if (times >= 11) {
ctx.failed('今日获取验证码次数过多,请明日再试');
// ctx.failed('今日获取验证码次数过多,请明日再试');
}
let pexpire = new Date(moment().add(1, 'days').format('YYYY-MM-DD 00:00:00')).getTime();
let validTime = Number(pexpire) - Number(moment().format('x'));
......@@ -171,6 +171,7 @@ class ApplyService extends Service {
code = Math.round(Math.random() * 9999).toString();
let len = code.length;
if ((4 - len) > 0) {
ß
for (var i = 0; i < 4 - len; i++) {
code = '0' + code;
}
......@@ -360,7 +361,7 @@ class ApplyService extends Service {
//第一次调用运营商获取验证码接口
const input_params = {
phone,name,
phone, name,
ID: id_card,
password: apply.service_code,
};
......
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