...
|
...
|
@@ -3,18 +3,18 @@ |
|
|
*/
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
const aes = require('./aes-pwd');
|
|
|
const api = global.yoho.API;
|
|
|
|
|
|
/**
|
|
|
* 手机或邮箱登录
|
|
|
* 手机或邮箱登录 app.passport.signin => app.passport.signinAES 加密
|
|
|
*/
|
|
|
const signinAsync = (area, profile, password, shoppingKey) => {
|
|
|
let param = {
|
|
|
method: 'app.passport.signin',
|
|
|
method: 'app.passport.signinAES',
|
|
|
area: area,
|
|
|
profile: profile,
|
|
|
password: password
|
|
|
password: aes.aesPwd(password)
|
|
|
};
|
|
|
|
|
|
if (shoppingKey) {
|
...
|
...
|
|