...
|
...
|
@@ -30,27 +30,13 @@ let validMobileCode = (area, mobile, code) => { |
|
|
return api.post('', params);
|
|
|
};
|
|
|
|
|
|
let regMobile = (area, mobile, password, shoppingKey)=> {
|
|
|
let params = {
|
|
|
method: 'app.passport.register',
|
|
|
area: area,
|
|
|
profile: mobile,
|
|
|
password: password
|
|
|
};
|
|
|
|
|
|
if (shoppingKey) {
|
|
|
params.shopping_key = shoppingKey;
|
|
|
}
|
|
|
|
|
|
return api.post('', params);
|
|
|
};
|
|
|
|
|
|
let regMobileAes = (area, mobile, password, shoppingKey)=> {
|
|
|
let regMobileAes = (area, mobile, password, code, shoppingKey)=> {
|
|
|
let params = {
|
|
|
method: 'app.passport.registerAES',
|
|
|
area: area,
|
|
|
profile: mobile,
|
|
|
password: aes.aesPwd(password)
|
|
|
password: aes.aesPwd(password),
|
|
|
verifyCode: code
|
|
|
};
|
|
|
|
|
|
if (shoppingKey) {
|
...
|
...
|
@@ -63,6 +49,5 @@ let regMobileAes = (area, mobile, password, shoppingKey)=> { |
|
|
module.exports = {
|
|
|
sendCodeToMobile,
|
|
|
validMobileCode,
|
|
|
regMobile,
|
|
|
regMobileAes
|
|
|
}; |
...
|
...
|
|