Merge branch 'hotfix/change-xianyu-login' into 'master'
修改闲鱼登录链接,修改sdk版本 See merge request !1786
Showing
3 changed files
with
6 additions
and
2 deletions
@@ -134,7 +134,7 @@ module.exports = { | @@ -134,7 +134,7 @@ module.exports = { | ||
134 | notifyUrl: domains.service + 'payment/weixin_notify', | 134 | notifyUrl: domains.service + 'payment/weixin_notify', |
135 | }, | 135 | }, |
136 | geetestJs: '//static.geetest.com/static/tools/gt.js', | 136 | geetestJs: '//static.geetest.com/static/tools/gt.js', |
137 | - jsSdk: '//cdn.yoho.cn/js-sdk/1.3.22/jssdk.js', | 137 | + jsSdk: '//cdn.yoho.cn/js-sdk/1.3.24/jssdk.js', |
138 | redis: { | 138 | redis: { |
139 | connect: { | 139 | connect: { |
140 | host: '192.168.102.49', | 140 | host: '192.168.102.49', |
1 | { | 1 | { |
2 | "name": "yohobuywap-node", | 2 | "name": "yohobuywap-node", |
3 | - "version": "6.9.11-5", | 3 | + "version": "6.9.15-1", |
4 | "private": true, | 4 | "private": true, |
5 | "description": "A New Yohobuy Project With Express", | 5 | "description": "A New Yohobuy Project With Express", |
6 | "repository": { | 6 | "repository": { |
@@ -49,9 +49,13 @@ $(document).ajaxError((event, xhr) => { | @@ -49,9 +49,13 @@ $(document).ajaxError((event, xhr) => { | ||
49 | if (yoho.isApp) { | 49 | if (yoho.isApp) { |
50 | yoho.goLogin(window.location.href); | 50 | yoho.goLogin(window.location.href); |
51 | } else { | 51 | } else { |
52 | + if (/AliApp/i.test(navigator.userAgent)) { | ||
53 | + window.location.href = '//xianyu.yohobuy.com/xianyu/passport/login/taobao'; | ||
54 | + } else { | ||
52 | window.location.href = `/signin.html?refer=${encodeURIComponent(window.location.href)}`; | 55 | window.location.href = `/signin.html?refer=${encodeURIComponent(window.location.href)}`; |
53 | } | 56 | } |
54 | } | 57 | } |
58 | + } | ||
55 | } else if (xhr.status === 510) { | 59 | } else if (xhr.status === 510) { |
56 | if (xhr.responseJSON.data && xhr.responseJSON.data.refer) { | 60 | if (xhr.responseJSON.data && xhr.responseJSON.data.refer) { |
57 | window.location.href = xhr.responseJSON.data.refer; | 61 | window.location.href = xhr.responseJSON.data.refer; |
-
Please register or login to post a comment