...
|
...
|
@@ -16,7 +16,7 @@ const imgCheck = require('../models/imgcheck'); |
|
|
*/
|
|
|
const load = (req, res, next) => {
|
|
|
co(function* () {
|
|
|
let isNeedImgCheckApiData = yield req.ctx(imgCheck).isNeedImgCheck(req.sessionID);
|
|
|
let isNeedImgCheckApiData = yield req.ctx(imgCheck).isNeedImgCheck(req.cookies.udid);
|
|
|
|
|
|
if (_.parseInt(_.get(isNeedImgCheckApiData, 'code')) === 200) {
|
|
|
req.yoho.captchaShow = _.get(isNeedImgCheckApiData, 'data');
|
...
|
...
|
@@ -52,7 +52,7 @@ const check = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
co(function* () {
|
|
|
let isNeedImgCheckApiData = yield req.ctx(imgCheck).isNeedImgCheck(req.sessionID);
|
|
|
let isNeedImgCheckApiData = yield req.ctx(imgCheck).isNeedImgCheck(req.cookies.udid);
|
|
|
|
|
|
req.yoho.captchaShow = true;
|
|
|
if (_.parseInt(_.get(isNeedImgCheckApiData, 'code')) === 200) {
|
...
|
...
|
|