...
|
...
|
@@ -10,8 +10,8 @@ const headerModel = require('../../../doraemon/models/header'); // 头部model |
|
|
const orderDetailModel = require('../models/orderDetail');
|
|
|
|
|
|
const orderDetailData = (req, res, next) => {
|
|
|
let uid = req.user.uid || 8039759;
|
|
|
let orderCode = req.query.order_code || 1618346759;
|
|
|
let uid = req.user.uid;
|
|
|
let orderCode = req.query.order_code;
|
|
|
|
|
|
orderDetailModel.orderDetailData(uid, orderCode).then(result => {
|
|
|
|
...
|
...
|
@@ -31,8 +31,8 @@ const orderDetailData = (req, res, next) => { |
|
|
|
|
|
// 删除订单
|
|
|
const delOrder = (req, res, next) => {
|
|
|
let orderCode = req.query.order_code || 1612441404;
|
|
|
let uid = req.user.uid || 8039759;
|
|
|
let orderCode = req.query.order_code;
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
orderDetailModel.delOrder(orderCode, uid).then((result) => {
|
|
|
res.json(result);
|
...
|
...
|
@@ -41,8 +41,8 @@ const delOrder = (req, res, next) => { |
|
|
|
|
|
// 再次购买
|
|
|
const readdData = (req, res, next) => {
|
|
|
let orderCode = req.query.order_code || 1606343171;
|
|
|
let uid = req.user.uid || 8039759;
|
|
|
let orderCode = req.query.order_code;
|
|
|
let uid = req.user.uid;
|
|
|
|
|
|
orderDetailModel.readdData(orderCode, uid).then((result) => {
|
|
|
res.json(result);
|
...
|
...
|
@@ -51,8 +51,8 @@ const readdData = (req, res, next) => { |
|
|
|
|
|
// 取消订单
|
|
|
const cancelOrder = (req, res, next) => {
|
|
|
let orderCode = req.query.order_code || 1606343171;
|
|
|
let uid = req.user.uid || 8039759;
|
|
|
let orderCode = req.query.order_code;
|
|
|
let uid = req.user.uid;
|
|
|
let reasonId = 1;
|
|
|
|
|
|
orderDetailModel.cancelOrder(orderCode, uid, reasonId).then((result) => {
|
...
|
...
|
|