Merge remote-tracking branch 'origin/hotfix/seckill-count'
Showing
1 changed file
with
8 additions
and
7 deletions
@@ -60,13 +60,14 @@ exports.ensure = (req, res, next) => { | @@ -60,13 +60,14 @@ exports.ensure = (req, res, next) => { | ||
60 | let view; | 60 | let view; |
61 | 61 | ||
62 | if (paymentInfo.code !== 200) { | 62 | if (paymentInfo.code !== 200) { |
63 | - if (paymentInfo.message) { | ||
64 | - view = { | ||
65 | - orderEnsure: false, | ||
66 | - message: paymentInfo.message | ||
67 | - }; | ||
68 | - } else { | ||
69 | - return Promise.reject(paymentInfo); | 63 | + view = { |
64 | + orderEnsure: false, | ||
65 | + message: paymentInfo.message | ||
66 | + }; | ||
67 | + | ||
68 | + // hotfix: nginx 接口限流, code:9999991时没message 信息 | ||
69 | + if (!view.message) { | ||
70 | + view.message = '挤爆啦,系统繁忙'; | ||
70 | } | 71 | } |
71 | } else { | 72 | } else { |
72 | // 渲染 | 73 | // 渲染 |
-
Please register or login to post a comment