Commit 3f6f91fb authored by Hsinli's avatar Hsinli

dele the code limie

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