Authored by 邱骏

修改环境判断

@@ -81,7 +81,7 @@ class Reg { @@ -81,7 +81,7 @@ class Reg {
81 regSuccessPage(req, res, next) { 81 regSuccessPage(req, res, next) {
82 let {activityId = 5475, templateId = 6047} = req.query; 82 let {activityId = 5475, templateId = 6047} = req.query;
83 83
84 - if ((global.yoho.isDev || global.yoho.isTest) && (!req.query.activityId || !req.query.templateId)) { 84 + if ((!global.isProduction) && (!req.query.activityId || !req.query.templateId)) {
85 activityId = 528; 85 activityId = 528;
86 templateId = 4166; 86 templateId = 4166;
87 } 87 }
@@ -93,8 +93,7 @@ class Reg { @@ -93,8 +93,7 @@ class Reg {
93 totalPrice: 0, 93 totalPrice: 0,
94 normalCoupon: [], 94 normalCoupon: [],
95 shareCoupon: [], 95 shareCoupon: [],
96 - boughtCoupon: [],  
97 - isTest: global.yoho.isTest 96 + boughtCoupon: []
98 }; 97 };
99 98
100 _.each(result.data, (couponData) => { 99 _.each(result.data, (couponData) => {