Authored by 陈轩

移动 serverAPI imgcheck.js

'use strict';
let imgCheckAPI = require('../../serverAPI/imgcheck');
let imgCheckAPI = require('../models/imgcheck');
exports.get = (req, res, next) => {
let data = {
... ...
'use strict';
const _ = require('lodash');
let captchaData = require('../passport/data/captcha.json');
let captchaData = require('../data/captcha.json');
// let api = global.yoho.API;
/**
... ... @@ -36,5 +36,5 @@ exports.gen = () => {
return Promise.resolve({
code: 200,
data: captchaData[random]
})
});
};
... ...