Authored by 郭成尧

wechat-confirm

... ... @@ -10,6 +10,7 @@ const helpers = global.yoho.helpers;
const _ = require('lodash');
const headerModel = require('../../../doraemon/models/header'); // 头部model
const orderDetailModel = require('../models/orderDetail');
const payModel = require('../models/pay');
const orderDetailData = (req, res, next) => {
let uid = req.user.uid;
... ... @@ -18,6 +19,11 @@ const orderDetailData = (req, res, next) => {
helpers.urlFormat('/service/im') :
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info=';
if (req.query.openId) {
// 微信支付成功,发送支付确认接口
payModel.sendPayConfirm(orderCode, 22, uid);
}
orderDetailModel.orderDetailData(uid, orderCode).then(result => {
if (!result || _.isEmpty(result)) {
return next(404);
... ...