Commit a26c7dbf authored by Hsinli's avatar Hsinli

addd

parent 46466f83
Pipeline #13696 passed with stage
in 26 seconds
......@@ -162,6 +162,9 @@ class ApplyService extends Service {
let codeKey = 'mine:credit:black:code' + inputParams.phone;
let codeData = await app.redis.get(codeKey);
ctx.logger.info({ codeData: JSON.stringify(codeData) });
if (codeData === null || !codeData) {
ctx.failed('请先获取验证码');
}
if (codeData.code !== inputParams.code) {
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