移动 serverAPI imgcheck.js
Showing
2 changed files
with
3 additions
and
3 deletions
1 | 'use strict'; | 1 | 'use strict'; |
2 | const _ = require('lodash'); | 2 | const _ = require('lodash'); |
3 | -let captchaData = require('../passport/data/captcha.json'); | 3 | +let captchaData = require('../data/captcha.json'); |
4 | 4 | ||
5 | // let api = global.yoho.API; | 5 | // let api = global.yoho.API; |
6 | /** | 6 | /** |
@@ -36,5 +36,5 @@ exports.gen = () => { | @@ -36,5 +36,5 @@ exports.gen = () => { | ||
36 | return Promise.resolve({ | 36 | return Promise.resolve({ |
37 | code: 200, | 37 | code: 200, |
38 | data: captchaData[random] | 38 | data: captchaData[random] |
39 | - }) | 39 | + }); |
40 | }; | 40 | }; |
-
Please register or login to post a comment