Showing
1 changed file
with
2 additions
and
2 deletions
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | * @Author: Targaryen | 3 | * @Author: Targaryen |
4 | * @Date: 2017-01-04 15:17:51 | 4 | * @Date: 2017-01-04 15:17:51 |
5 | * @Last Modified by: Targaryen | 5 | * @Last Modified by: Targaryen |
6 | - * @Last Modified time: 2017-01-10 16:19:24 | 6 | + * @Last Modified time: 2017-01-10 16:43:54 |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 'use strict'; | 9 | 'use strict'; |
@@ -103,7 +103,7 @@ const pay = (req, res, next) => { | @@ -103,7 +103,7 @@ const pay = (req, res, next) => { | ||
103 | let paymentCode = common.getPaymentCode(payment); | 103 | let paymentCode = common.getPaymentCode(payment); |
104 | let openId = req.cookies['weixinOpenId' + orderCode]; | 104 | let openId = req.cookies['weixinOpenId' + orderCode]; |
105 | 105 | ||
106 | - if (!orderCode || !uid) { | 106 | + if (!orderCode || !uid || !sessionKey) { |
107 | return res.redirect('/'); | 107 | return res.redirect('/'); |
108 | } | 108 | } |
109 | 109 |
-
Please register or login to post a comment