var config = [
{from: '^/$', to:'/s/finance/index.xsp', comment: '金融首页'},
{from: '^/discount/r(\\d{1,4})/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/common/chooseBrSe.xsp?rid=$1&type=discount&src=0&browser=$3&flow=$4', comment: '贴息品牌车系页'},
{from: '^/serials/r(\\d{1,4})/b(\\d{1,4})/t(0|1)/((wx)?/)?$', to:'/s/finance/common/chooseSerials.xsp?rid=$1&bid=$2&type=$3&browser=$5', comment: '车系页(t1有贴息促销)'},
{from: '^/choose/r(\\d{1,4})/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/common/chooseBrSe.xsp?rid=$1&type=default&src=0&browser=$3&flow=$4', comment: '品牌车系页(购车贷款)'},
{from: '^/helper/r(\\d{1,4})/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/common/chooseBrSe.xsp?rid=$1&type=default&src=1&browser=$3&flow=$4', comment: '品牌车系页(购车小秘)'},
{from: '^/loan/r(\\d{1,4})/h(0|1)/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/info/loan.xsp?rid=$1&isHelper=1&isChoosed=$2&browser=$4&flow=$5', comment: '购车小秘申请资质页'},
{from: '^/apply/r(\\d{1,4})/sg(\\d+)-m(\\d+)-org(\\d+)-pro(\\d+)-p(\\d+)-s(\\d+)-a((-?\\d+)(\\.\\d+)?)/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/info/loan.xsp?rid=$1&orgId=$4&productId=$5&modelId=$3&periods=$6&downPayment=$7&serialId=$2&averagePrice=$8&browser=$11&flow=$13', comment: '我要贷款申请资质页'},
{from: '^/helper/r(\\d{1,4})/sg(\\d{1,6})/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/info/selectModels.xsp?rid=$1&serialId=$2&browser=$4&flow=$5', comment: '选择车型列表页'},
{from: '^/brand/r(\\d{1,4})/d(\\d{0,2})-mp(\\d{0,1})-k(\\d{0,3})-st(\\d{0,1})/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/common/brand.xsp?rid=$1&pPR=$2&pR=$3&lv=$4&st=$5&browser=$7&flow=$8', comment: '选品牌页'},
{from: '^/budget/r(\\d{1,4})/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/common/budgetSerial.xsp?rid=$1&browser=$3&flow=4', comment: '按预算选车'},
{from: '^/budgetp/r(\\d{1,4})/s(\\d{1,3})-m(\\d{1,3})-l(\\d{1,3})-st(\\d{1,2})(-b(\\d{1,4}))?/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/common/budgetSerial.xsp?rid=$1&prePayRange=$2&paymentRange=$3&level=$4&sort=$5&bid=$7&browser=$9&flow=$10', comment: '按预算选车'},
{from: '^/budgetpoxy/r(\\d{1,4})/s(1|2)/((wx)?/)?$', to:'/s/finance/common/budgetProxy.xsp?rId=$1&sort=$2&browser=$4', comment: '按预算选车代理接口'},
{from: '^/goodRecommend/r(\\d{1,4})/h(0|1)-m(\\d+)(-org(\\d+)-pro(\\d+)-p(\\d+)-s(\\d+)-tel(\\d+))?/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/info/goodRecommend.xsp?rId=$1&isHelper=$2&modelId=$3&orgId=$5&productId=$6&periods=$7&downPayment=$8&browser=$11&tel=$9&flow=$12', comment: '推荐产品页(我要贷款入口)'},
{from: '^/success/r(\\d{1,4})/(qr(\\d{1,13})/)?((wx)?/)?$', to:'/s/finance/order/success.xsp?qr=$3&browser=$5', comment: '询价/订单提交成功页'},
{from: '^/product/r(\\d{1,4})/pro(\\d{1,6})-m(\\d{1,8})(-s(\\d{1,2}))?(-p(\\d{1,2}))?(-f(\\d{1,2}))?/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/product/productDetail.xsp?rid=$1&productId=$2&modelId=$3&ratio=$5&term=$7&finalPayment=$9&browser=$11&flow=$12', comment: '金融产品详情'},
{from: '^/(choose|discount)/r(\\d{1,4})/sg(\\d+)(-m(\\d+))?(-c(\\d+))?(-s(\\d+))?(-p(\\d+))?/((wx)?/)?f(\\d{1,1})/$', to:'/s/finance/product/list.xsp?rId=$2&serialId=$3&modelId=$5&feature=$7&prepay=$9&term=$11&type=$1&browser=$13&flow=$14', comment: '金融产品列表页'},
{from: '^/sendCode/r(\\d{1,4})/((wx)?/)?$', to:'/s/finance/info/sendCode.xsp?rid=$1&browser=$3', comment: '手机号码验证'},
{from: '^/order/r(\\d{1,4})/((wx)?/)?$', to:'/s/finance/order/order.xsp?browser=$3', comment: '订单页面'},
//weixin api
{from: '^/api/(\\w+)', to:'/s/finance/jrweixin/$1.xsp', comment: 'weixin api正则配置'}
];

module.exports.rewriteconfig = config;