Authored by 郭成尧

bug-fiexd

... ... @@ -30,6 +30,7 @@ router.get('/index/new/pay', authMW, payController.pay);// 统一支付 URL,
router.get('/index/new/pay/alipayresult', authMW, payController.payAli);// 支付宝付款支付成功
router.get('/index/new/orderEnsure', authMW, order.orderEnsure); // 订单结算
router.get('/index/new/fast', authMW, order.orderEnsure); // 快速结算
router.get('/index/new/selectCoupon', authMW, order.selectCoupon); // 选择优惠券 页面
router.get('/index/new/couponList', order.couponList); // [ajax]获取优惠券列表
router.post('/index/new/couponSearch', order.couponSearch); // [ajax]购物车输入优惠券码使用优惠券
... ...
... ... @@ -42,7 +42,7 @@ exports.address = (req, res, next) => {
*/
exports.addressAct = (req, res, next) => {
addressModel.address({
id: decodeURIComponent(req.query.id),
id: req.query.id ? decodeURIComponent(req.query.id) : null,
uid: req.user.uid
}).then(result => {
let responseData = {
... ... @@ -53,7 +53,7 @@ exports.addressAct = (req, res, next) => {
navBtn: false,
backUrl: false
}),
title: result.navTitle
title: result && result.navTitle
};
res.render('address/address-act', Object.assign(responseData, result));
... ...
... ... @@ -17,13 +17,13 @@ module.exports = {
assetUrl: '//127.0.0.1:5001',
testCode: 'yoho4946abcdef#$%&!@',
domains: {
api: 'http://api-test3.yohops.com:9999/',
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// liveApi: 'http://testapi.live.yohops.com:9999/',
// singleApi: 'http://api-test3.yohops.com:9999/',
// api: 'http://dev-api.yohops.com:9999/',
service: 'http://service.yoho.cn/',
api: 'http://dev-api.yohops.com:9999/',
service: 'http://dev-service.yohops.com:9999/',
liveApi: 'http://api.live.yoho.cn/',
singleApi: 'http://single.yoho.cn/',
... ...