Showing
1 changed file
with
6 additions
and
0 deletions
@@ -10,6 +10,7 @@ const helpers = global.yoho.helpers; | @@ -10,6 +10,7 @@ const helpers = global.yoho.helpers; | ||
10 | const _ = require('lodash'); | 10 | const _ = require('lodash'); |
11 | const headerModel = require('../../../doraemon/models/header'); // 头部model | 11 | const headerModel = require('../../../doraemon/models/header'); // 头部model |
12 | const orderDetailModel = require('../models/orderDetail'); | 12 | const orderDetailModel = require('../models/orderDetail'); |
13 | +const payModel = require('../models/pay'); | ||
13 | 14 | ||
14 | const orderDetailData = (req, res, next) => { | 15 | const orderDetailData = (req, res, next) => { |
15 | let uid = req.user.uid; | 16 | let uid = req.user.uid; |
@@ -18,6 +19,11 @@ const orderDetailData = (req, res, next) => { | @@ -18,6 +19,11 @@ const orderDetailData = (req, res, next) => { | ||
18 | helpers.urlFormat('/service/im') : | 19 | helpers.urlFormat('/service/im') : |
19 | 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='; | 20 | 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='; |
20 | 21 | ||
22 | + if (req.query.openId) { | ||
23 | + // 微信支付成功,发送支付确认接口 | ||
24 | + payModel.sendPayConfirm(orderCode, 22, uid); | ||
25 | + } | ||
26 | + | ||
21 | orderDetailModel.orderDetailData(uid, orderCode).then(result => { | 27 | orderDetailModel.orderDetailData(uid, orderCode).then(result => { |
22 | if (!result || _.isEmpty(result)) { | 28 | if (!result || _.isEmpty(result)) { |
23 | return next(404); | 29 | return next(404); |
-
Please register or login to post a comment