Authored by htoooth

fix

... ... @@ -50,18 +50,15 @@ const signinByQrCode = (__1, __2, code, shoppingKey) => { // eslint-disable-line
return api.post('', param);
};
const fetchByQrCode = () => {
const checkByQrCode = (code) => {
let param = {
method: 'app.twoDimen.getCode'
method: 'app.twoDimen.loginCheck',
code: code
};
return api.post('', param);
};
const checkByQrCode = (code) => {
return Promise.resolve({code: 200});
};
const sendPasswordBySMS = (area, mobile) => {
let param = {
method: 'app.message.sendSms',
... ... @@ -110,7 +107,6 @@ module.exports = {
signinByPasswordWithAes,
signinBySMS,
signinByQrCode,
fetchByQrCode,
checkByQrCode,
sendPasswordBySMS,
checkUserExitBySMS,
... ...
... ... @@ -95,8 +95,7 @@ const fetchByQrCode = () => {
time: new Date().getTime()
};
const salt = '1qaz2wsx3edc4rfv';
const encodeStr = _.flow(JSON.stringify, _.partial(crypto.encryption, salt), encodeURIComponent);
const encodeStr = _.flow(JSON.stringify, _.partial(crypto.encryption, null), encodeURIComponent);
return Promise.resolve({
data: {
... ...
... ... @@ -17,8 +17,8 @@ module.exports = {
cookieDomain: '.yohobuy.com',
domains: {
favApi: 'http://192.168.102.31:8092/brower',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
api: 'http://dev-api.yohops.com:9999',
service: 'http://dev-service.yohops.com:9999/',
search: 'http://192.168.102.216:8080/yohosearch/'
},
subDomains: {
... ...