Merge remote-tracking branch 'refs/remotes/origin/hotfix/couponWebSession' into develop
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -85,7 +85,7 @@ exports.couponSend = (req, res, next) => { | @@ -85,7 +85,7 @@ exports.couponSend = (req, res, next) => { | ||
85 | 85 | ||
86 | // 接口要加 session 校验,跨域异步请求未添加相关参数 | 86 | // 接口要加 session 校验,跨域异步请求未添加相关参数 |
87 | if (req.yoho.isApp || app.client_type === 'miniapp') { | 87 | if (req.yoho.isApp || app.client_type === 'miniapp') { |
88 | - if (app.app_version && app.client_type && app.session_key && app.uid && !req.query.webSession) { | 88 | + if (app.app_version && app.client_type && app.session_key && app.uid && req.query.webSession !== 'true') { |
89 | // 小程序调接口获取 session 的方式不同,H5 嵌小程序,client_type 标记为 h5 | 89 | // 小程序调接口获取 session 的方式不同,H5 嵌小程序,client_type 标记为 h5 |
90 | let isMiniApp = app.client_type === 'miniapp'; | 90 | let isMiniApp = app.client_type === 'miniapp'; |
91 | 91 |
-
Please register or login to post a comment