Merge branch 'master' into 'release/6.9.2'
jssdk update and 401 jsonp See merge request !1739
Showing
2 changed files
with
4 additions
and
1 deletions
@@ -133,7 +133,7 @@ module.exports = { | @@ -133,7 +133,7 @@ module.exports = { | ||
133 | notifyUrl: domains.service + 'payment/weixin_notify', | 133 | notifyUrl: domains.service + 'payment/weixin_notify', |
134 | }, | 134 | }, |
135 | geetestJs: '//static.geetest.com/static/tools/gt.js', | 135 | geetestJs: '//static.geetest.com/static/tools/gt.js', |
136 | - jsSdk: '//cdn.yoho.cn/js-sdk/1.3.20/jssdk.js', | 136 | + jsSdk: '//cdn.yoho.cn/js-sdk/1.3.21/jssdk.js', |
137 | redis: { | 137 | redis: { |
138 | connect: { | 138 | connect: { |
139 | host: '192.168.102.49', | 139 | host: '192.168.102.49', |
@@ -180,6 +180,9 @@ exports.serverError = () => { | @@ -180,6 +180,9 @@ exports.serverError = () => { | ||
180 | 180 | ||
181 | if (req.xhr) { | 181 | if (req.xhr) { |
182 | return res.status(401).json(err); | 182 | return res.status(401).json(err); |
183 | + } else if (req.jsonp) { | ||
184 | + err.auth = true; | ||
185 | + return res.jsonp(err); | ||
183 | } else if (req.yoho.isApp) { | 186 | } else if (req.yoho.isApp) { |
184 | if (err.lowVersion) { | 187 | if (err.lowVersion) { |
185 | return res.render('error/app-auth', { | 188 | return res.render('error/app-auth', { |
-
Please register or login to post a comment