|
|
/**
|
|
|
* Created by TaoHuang on 2016/6/17.
|
|
|
*/
|
|
|
'use strict';
|
|
|
|
|
|
const Promise = require('bluebird');
|
|
|
const co = Promise.coroutine;
|
|
|
|
|
|
module.exports.findCaptchaByTokenAsync = (token) => {
|
|
|
return co(function *() {
|
|
|
if (token) {
|
|
|
return {token: token};
|
|
|
} else {
|
|
|
return {};
|
|
|
}
|
|
|
})();
|
|
|
};
|
|
|
|
|
|
|