Authored by xuqi

uid to req.user.uid

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