...
|
...
|
@@ -7,7 +7,7 @@ exports.get = (req, res, next) => { |
|
|
let data = {
|
|
|
src: ''
|
|
|
};
|
|
|
let udid = req.session.id;
|
|
|
let udid = req.sessionID;
|
|
|
|
|
|
return req.ctx(imgCheckServiceModel).gen(udid).then(result => {
|
|
|
if (result.code === 200 && result.data) {
|
...
|
...
|
@@ -20,7 +20,7 @@ exports.get = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
exports.imgCheck = (req, res, next) => {
|
|
|
let udid = req.session.id;
|
|
|
let udid = req.sessionID;
|
|
|
|
|
|
return req.ctx(imgCheckServiceModel).gen(udid).then(result => {
|
|
|
if (result.code === 200 && result.data) {
|
...
|
...
|
@@ -34,7 +34,7 @@ exports.imgCheck = (req, res, next) => { |
|
|
* 验证img-check验证码
|
|
|
*/
|
|
|
exports.validate = (req, res, next) => {
|
|
|
let udid = req.session.id;
|
|
|
let udid = req.sessionID;
|
|
|
let captchaInput = req.body.captcha;
|
|
|
|
|
|
return req.ctx(imgCheckServiceModel).check(udid, captchaInput).then(result => {
|
...
|
...
|
|