...
|
...
|
@@ -31,7 +31,7 @@ let validMobileCode = (area, mobile, code) => { |
|
|
return api.post('', params);
|
|
|
};
|
|
|
|
|
|
let regMobileAes = (area, mobile, password, code, shoppingKey, extParam)=> {
|
|
|
let regMobileAes = (area, mobile, password, code, shoppingKey, inviteCode, clientIp)=> {
|
|
|
let params = {
|
|
|
method: 'app.passport.registerAES',
|
|
|
area: area,
|
...
|
...
|
@@ -44,13 +44,16 @@ let regMobileAes = (area, mobile, password, code, shoppingKey, extParam)=> { |
|
|
params.shopping_key = shoppingKey;
|
|
|
}
|
|
|
|
|
|
if (extParam) {
|
|
|
if (extParam.inviteCode) {
|
|
|
params.inviteCode = extParam.inviteCode;
|
|
|
}
|
|
|
if (inviteCode) {
|
|
|
params.inviteCode = inviteCode;
|
|
|
}
|
|
|
|
|
|
return api.post('', params);
|
|
|
return api.post('', params, {
|
|
|
headers: {
|
|
|
'user-agent': 'yoho/nodejs',
|
|
|
'X-YOHO-IP': clientIp
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
...
|
...
|
|