Authored by 陈轩

移动 serverAPI imgcheck.js

1 'use strict'; 1 'use strict';
2 2
3 -let imgCheckAPI = require('../../serverAPI/imgcheck'); 3 +let imgCheckAPI = require('../models/imgcheck');
4 4
5 exports.get = (req, res, next) => { 5 exports.get = (req, res, next) => {
6 let data = { 6 let data = {
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 };