|
@@ -9,7 +9,7 @@ |
|
@@ -9,7 +9,7 @@ |
9
|
const orderModel = require('../models/order');
|
9
|
const orderModel = require('../models/order');
|
10
|
|
10
|
|
11
|
const index = (req, res, next) => {
|
11
|
const index = (req, res, next) => {
|
12
|
- orderModel.index('7566245').then(result => {
|
12
|
+ orderModel.index(req.user.uid).then(result => {
|
13
|
|
13
|
|
14
|
// 设置头部路径索引focus
|
14
|
// 设置头部路径索引focus
|
15
|
result.data.bcNavFocus = 2;
|
15
|
result.data.bcNavFocus = 2;
|
|
@@ -52,7 +52,7 @@ const index = (req, res, next) => { |
|
@@ -52,7 +52,7 @@ const index = (req, res, next) => { |
52
|
|
52
|
|
53
|
// 订单金额计算
|
53
|
// 订单金额计算
|
54
|
const compute = (req, res, next) => {
|
54
|
const compute = (req, res, next) => {
|
55
|
- orderModel.compute('7566245', req.query.coin).then(result => {
|
55
|
+ orderModel.compute(req.user.uid, req.query.coin).then(result => {
|
56
|
res.send(result);
|
56
|
res.send(result);
|
57
|
}).catch(next);
|
57
|
}).catch(next);
|
58
|
};
|
58
|
};
|
|
@@ -70,7 +70,7 @@ const orderSub = (req, res, next) => { |
|
@@ -70,7 +70,7 @@ const orderSub = (req, res, next) => { |
70
|
return;
|
70
|
return;
|
71
|
}
|
71
|
}
|
72
|
|
72
|
|
73
|
- orderModel.submit('7566245', other).then(result => {
|
73
|
+ orderModel.submit(req.user.uid, other).then(result => {
|
74
|
res.send(result);
|
74
|
res.send(result);
|
75
|
}).catch(next);
|
75
|
}).catch(next);
|
76
|
};
|
76
|
};
|