Authored by htoooth

修复错误

... ... @@ -6,7 +6,7 @@
const api = global.yoho.API;
const signinAsnyc = (area, profile, password, shoppingKey) => {
const signinAsync = (area, profile, password, shoppingKey) => {
let param = {
method: 'app.passport.signin',
area: area,
... ... @@ -53,7 +53,7 @@ const signinByWechatAsync = (nickname, openId, sourceType, shoppingKey, unionId)
};
module.exports = {
signinAsnyc,
signinAsync,
signinByOtherOpenIDAsync,
signinByWechatAsync
};
... ...
... ... @@ -15,7 +15,7 @@ const AlipayStrategy = require('./passport-alipay').Strategy;
const md5 = require('md5');
const loginService = require('./login-service');
const LoginService = require('./login-service');
const config = global.yoho.config;
const helpers = global.yoho.helpers;
... ... @@ -76,7 +76,7 @@ passport.use(new LocalStrategy({
if (accountTimes >= 10) {
done({message: '您的账号已被暂时锁定,请30分钟后再试'}, null);
} else {
return loginService.signin(area, username, password, shoppingKey).then((result) => {
return LoginService.signinAsync(area, username, password, shoppingKey).then((result) => {
if (result.code && result.code === 200 && result.data.uid) {
cache.del(errorLoginKey);
... ...
... ... @@ -48,7 +48,7 @@ function AlipayStrategy(options, verify) {
options = options || {};
passport.Strategy.call(this);
this.name = 'alipay';
this._verify = verif
this._verify = verify;
this._options = options;
}
... ...
... ... @@ -57,7 +57,7 @@
count--;
countDown.innerHTML = count;
} else {
location.href = '/';
location.href = '/passport/login';
}
}, 1000);
})();
... ...