...
|
...
|
@@ -4,7 +4,6 @@ const aes = require('./aes-pwd'); |
|
|
const authcode = require('../../../utils/authcode');
|
|
|
const logger = global.yoho.logger;
|
|
|
const sign = global.yoho.sign;
|
|
|
const api = global.yoho.API;
|
|
|
const uuid = require('uuid');
|
|
|
const url = require('url');
|
|
|
const md5 = require('yoho-md5');
|
...
|
...
|
@@ -30,7 +29,7 @@ class AuthModel extends global.yoho.BaseModel { |
|
|
param.shopping_key = shoppingKey;
|
|
|
}
|
|
|
|
|
|
return api.post('', param);
|
|
|
return this.post({data: param});
|
|
|
}
|
|
|
|
|
|
signinAes(area, profile, password, shoppingKey, ip, isSkip, from) {
|
...
|
...
|
@@ -49,12 +48,8 @@ class AuthModel extends global.yoho.BaseModel { |
|
|
|
|
|
logger.info(`${profile}, login from ${ip}`);
|
|
|
|
|
|
return api.post('', param, {
|
|
|
headers: {
|
|
|
'user-agent': 'yoho/nodejs',
|
|
|
'X-YOHO-IP': ip,
|
|
|
'X-Forwarded-For': ip
|
|
|
}
|
|
|
return this.post({
|
|
|
data: param
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -71,7 +66,7 @@ class AuthModel extends global.yoho.BaseModel { |
|
|
param.shopping_key = params.shoppingKey;
|
|
|
}
|
|
|
|
|
|
return api.get('', param);
|
|
|
return this.get({data: param});
|
|
|
}
|
|
|
|
|
|
profile(uid) {
|
...
|
...
|
@@ -80,7 +75,7 @@ class AuthModel extends global.yoho.BaseModel { |
|
|
method: 'app.passport.profile'
|
|
|
};
|
|
|
|
|
|
return api.get('', param);
|
|
|
return this.get({data: param});
|
|
|
}
|
|
|
|
|
|
thirdSign(params, clientSecret) {
|
...
|
...
|
|