Showing
1 changed file
with
0 additions
and
19 deletions
1 | -/** | ||
2 | - * Created by TaoHuang on 2016/6/17. | ||
3 | - */ | ||
4 | -'use strict'; | ||
5 | - | ||
6 | -const Promise = require('bluebird'); | ||
7 | -const co = Promise.coroutine; | ||
8 | - | ||
9 | -module.exports.findCaptchaByTokenAsync = (token) => { | ||
10 | - return co(function *() { | ||
11 | - if (token) { | ||
12 | - return {token: token}; | ||
13 | - } else { | ||
14 | - return {}; | ||
15 | - } | ||
16 | - })(); | ||
17 | -}; | ||
18 | - | ||
19 | - |
-
Please register or login to post a comment