...
|
...
|
@@ -3,7 +3,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-01-04 15:17:51
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-02-16 17:52:03
|
|
|
* @Last Modified time: 2017-02-17 09:52:57
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
...
|
...
|
@@ -42,9 +42,15 @@ const payCenter = (req, res, next) => { |
|
|
co(function* () {
|
|
|
let orderDetail = yield payModel.payCenter({
|
|
|
orderCode: orderCode,
|
|
|
uid: uid
|
|
|
uid: uid,
|
|
|
sessionKey: sessionKey
|
|
|
});
|
|
|
|
|
|
/* 判断订单是否已付款, 已付款跳到订单详情页 */
|
|
|
if (orderDetail.isPay) {
|
|
|
return res.redirect(helpers.urlFormat('/cart/shopping/pay/payZero', {order_code: orderCode}));
|
|
|
}
|
|
|
|
|
|
if (hasWxShare) {
|
|
|
let openId = req.cookies['weixinOpenId' + orderCode];
|
|
|
|
...
|
...
|
|