Showing
3 changed files
with
6 additions
and
11 deletions
@@ -50,18 +50,15 @@ const signinByQrCode = (__1, __2, code, shoppingKey) => { // eslint-disable-line | @@ -50,18 +50,15 @@ const signinByQrCode = (__1, __2, code, shoppingKey) => { // eslint-disable-line | ||
50 | return api.post('', param); | 50 | return api.post('', param); |
51 | }; | 51 | }; |
52 | 52 | ||
53 | -const fetchByQrCode = () => { | 53 | +const checkByQrCode = (code) => { |
54 | let param = { | 54 | let param = { |
55 | - method: 'app.twoDimen.getCode' | 55 | + method: 'app.twoDimen.loginCheck', |
56 | + code: code | ||
56 | }; | 57 | }; |
57 | 58 | ||
58 | return api.post('', param); | 59 | return api.post('', param); |
59 | }; | 60 | }; |
60 | 61 | ||
61 | -const checkByQrCode = (code) => { | ||
62 | - return Promise.resolve({code: 200}); | ||
63 | -}; | ||
64 | - | ||
65 | const sendPasswordBySMS = (area, mobile) => { | 62 | const sendPasswordBySMS = (area, mobile) => { |
66 | let param = { | 63 | let param = { |
67 | method: 'app.message.sendSms', | 64 | method: 'app.message.sendSms', |
@@ -110,7 +107,6 @@ module.exports = { | @@ -110,7 +107,6 @@ module.exports = { | ||
110 | signinByPasswordWithAes, | 107 | signinByPasswordWithAes, |
111 | signinBySMS, | 108 | signinBySMS, |
112 | signinByQrCode, | 109 | signinByQrCode, |
113 | - fetchByQrCode, | ||
114 | checkByQrCode, | 110 | checkByQrCode, |
115 | sendPasswordBySMS, | 111 | sendPasswordBySMS, |
116 | checkUserExitBySMS, | 112 | checkUserExitBySMS, |
@@ -95,8 +95,7 @@ const fetchByQrCode = () => { | @@ -95,8 +95,7 @@ const fetchByQrCode = () => { | ||
95 | time: new Date().getTime() | 95 | time: new Date().getTime() |
96 | }; | 96 | }; |
97 | 97 | ||
98 | - const salt = '1qaz2wsx3edc4rfv'; | ||
99 | - const encodeStr = _.flow(JSON.stringify, _.partial(crypto.encryption, salt), encodeURIComponent); | 98 | + const encodeStr = _.flow(JSON.stringify, _.partial(crypto.encryption, null), encodeURIComponent); |
100 | 99 | ||
101 | return Promise.resolve({ | 100 | return Promise.resolve({ |
102 | data: { | 101 | data: { |
@@ -17,8 +17,8 @@ module.exports = { | @@ -17,8 +17,8 @@ module.exports = { | ||
17 | cookieDomain: '.yohobuy.com', | 17 | cookieDomain: '.yohobuy.com', |
18 | domains: { | 18 | domains: { |
19 | favApi: 'http://192.168.102.31:8092/brower', | 19 | favApi: 'http://192.168.102.31:8092/brower', |
20 | - api: 'http://api.yoho.cn/', | ||
21 | - service: 'http://service.yoho.cn/', | 20 | + api: 'http://dev-api.yohops.com:9999', |
21 | + service: 'http://dev-service.yohops.com:9999/', | ||
22 | search: 'http://192.168.102.216:8080/yohosearch/' | 22 | search: 'http://192.168.102.216:8080/yohosearch/' |
23 | }, | 23 | }, |
24 | subDomains: { | 24 | subDomains: { |
-
Please register or login to post a comment