Authored by shuaiguo

fix(api-map): path配合,不需要前缀/ reviewed by张文文

底层使用node url.resolve ,
根据common.js domains配置
api-map中path不需要/
... ... @@ -63,7 +63,7 @@ module.exports = {
'/api/ufo/product/coupon': {
ufo: true,
auth: true,
path: '/couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter'
path: 'couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter'
api: 'ufo.couponsInPrdDetail.list',
params: {
productId: {type: Number},
... ... @@ -77,7 +77,7 @@ module.exports = {
'/api/ufo/product/couponTopList': {
ufo: true,
auth: false,
path: '/couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter'
path: 'couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter'
api: 'ufo.couponTopListOfPrdDetail.list',
params: {
productId: {type: Number},
... ... @@ -98,7 +98,7 @@ module.exports = {
'/api/ufo/product/addsize': {
ufo: true,
auth: true,
path: '/ufoLive',
path: 'ufoLive',
api: 'ufo.product.addSize',
params: {
product_id: {type: Number}, // 商品id
... ...