Authored by xuqi

uid to req.user.uid

@@ -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 };
@@ -13,11 +13,11 @@ module.exports = { @@ -13,11 +13,11 @@ module.exports = {
13 app: 'web', 13 app: 'web',
14 appVersion: '4.6.0', // 调用api接口版本 14 appVersion: '4.6.0', // 调用api接口版本
15 port: 6003, 15 port: 6003,
16 - siteUrl: '//www.yohobuy.com', 16 + siteUrl: '//www.yohoblk.com',
17 subDomains: { 17 subDomains: {
18 - default: '//www.yohobuy.com' 18 + default: '//www.yohoblk.com'
19 }, 19 },
20 - cookieDomain: 'yohobuy.com', 20 + cookieDomain: 'yohoblk.com',
21 domains: { 21 domains: {
22 api: 'http://testapi.yoho.cn:28078/', // devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078 22 api: 'http://testapi.yoho.cn:28078/', // devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078
23 service: 'http://testservice.yoho.cn:28077/', // testservice.yoho.cn:28077 devservice.yoho.cn:58077 23 service: 'http://testservice.yoho.cn:28077/', // testservice.yoho.cn:28077 devservice.yoho.cn:58077