Commit 0369287a authored by Hsinli's avatar Hsinli

addd

parent 66290d39
Pipeline #13698 passed with stage
in 5 seconds
...@@ -126,7 +126,7 @@ class ApplyService extends Service { ...@@ -126,7 +126,7 @@ class ApplyService extends Service {
name: inputParams.name, name: inputParams.name,
id_card: inputParams.id_card id_card: inputParams.id_card
} }
await app.redis.set(codeKey, JSON, stringify(codeData), 'EX', 60 * 5);//5分钟有效时间 await app.redis.set(codeKey, JSON.stringify(codeData), 'EX', 60 * 5);//5分钟有效时间
let smsParams = { let smsParams = {
...@@ -161,7 +161,7 @@ class ApplyService extends Service { ...@@ -161,7 +161,7 @@ class ApplyService extends Service {
//验证码校验 //验证码校验
let codeKey = 'mine:credit:black:code' + inputParams.phone; let codeKey = 'mine:credit:black:code' + inputParams.phone;
let codeData = await app.redis.get(codeKey); let codeData = await app.redis.get(codeKey);
ctx.logger.info({ codeData: JSON.stringify(codeData) }); ctx.logger.info({ codeData: codeData });
if (codeData === null || !codeData) { if (codeData === null || !codeData) {
ctx.failed('请先获取验证码'); ctx.failed('请先获取验证码');
} }
......
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