...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
const orderModel = require('../models/order');
|
|
|
|
|
|
const index = (req, res, next) => {
|
|
|
orderModel.index('7566245').then(result => {
|
|
|
orderModel.index(req.user.uid).then(result => {
|
|
|
|
|
|
// 设置头部路径索引focus
|
|
|
result.data.bcNavFocus = 2;
|
...
|
...
|
@@ -52,7 +52,7 @@ const index = (req, res, next) => { |
|
|
|
|
|
// 订单金额计算
|
|
|
const compute = (req, res, next) => {
|
|
|
orderModel.compute('7566245', req.query.coin).then(result => {
|
|
|
orderModel.compute(req.user.uid, req.query.coin).then(result => {
|
|
|
res.send(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
@@ -70,7 +70,7 @@ const orderSub = (req, res, next) => { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
orderModel.submit('7566245', other).then(result => {
|
|
|
orderModel.submit(req.user.uid, other).then(result => {
|
|
|
res.send(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|