Commit 4b3ee1cb authored by 任国军's avatar 任国军

去除金闪贷6046渠道展示

parent 395d6c75
Pipeline #21516 passed with stage
in 11 seconds
...@@ -444,9 +444,14 @@ class ProductService extends Service { ...@@ -444,9 +444,14 @@ class ProductService extends Service {
// 以下代码是为了处理渠道包下不展示特殊的4个业务 // 以下代码是为了处理渠道包下不展示特殊的4个业务
// start // start
const sepecial_business_ids = [ 109 ]; const sepecial_business_ids = [ 109 ];
const place_cids = [ 6046 ]; // const place_cids = [ 6046 ];
if (ctx.helper.toInt(place_cid) > 0 && place_cids.includes(ctx.helper.toInt(place_cid)) && sepecial_business_ids.includes(ctx.helper.toInt(v.business_id))) { const channels = [ 'n_1_10000_14038' ];
ctx.logger.info('get_phone_by_user_place_business:' + place_cid + '--business_id--' + v.business_id); // if (ctx.helper.toInt(place_cid) > 0 && place_cids.includes(ctx.helper.toInt(place_cid)) && sepecial_business_ids.includes(ctx.helper.toInt(v.business_id))) {
// ctx.logger.info('get_phone_by_user_place_business:' + place_cid + '--business_id--' + v.business_id);
// continue;
// }
if (!ctx.isEmpty(channel) && channels.includes(channel) && sepecial_business_ids.includes(ctx.helper.toInt(v.business_id))) {
ctx.logger.info('filter_channel_business: ' + channel + '--business_id--' + v.business_id);
continue; continue;
} }
// end // end
...@@ -553,9 +558,14 @@ class ProductService extends Service { ...@@ -553,9 +558,14 @@ class ProductService extends Service {
// 以下代码是为了处理渠道包下不展示特殊的4个业务 // 以下代码是为了处理渠道包下不展示特殊的4个业务
// start // start
const sepecial_business_ids = [ 109 ]; const sepecial_business_ids = [ 109 ];
const place_cids = [ 6046 ]; // const place_cids = [ 6046 ];
if (ctx.helper.toInt(place_cid) > 0 && place_cids.includes(ctx.helper.toInt(place_cid)) && sepecial_business_ids.includes(ctx.helper.toInt(v.business_id))) { const channels = [ 'n_1_10000_14038' ];
ctx.logger.info('get_phone_by_user_place_business:' + place_cid + '--business_id--' + v.business_id); // if (ctx.helper.toInt(place_cid) > 0 && place_cids.includes(ctx.helper.toInt(place_cid)) && sepecial_business_ids.includes(ctx.helper.toInt(v.business_id))) {
// ctx.logger.info('get_phone_by_user_place_business:' + place_cid + '--business_id--' + v.business_id);
// continue;
// }
if (!ctx.isEmpty(channel) && channels.includes(channel) && sepecial_business_ids.includes(ctx.helper.toInt(v.business_id))) {
ctx.logger.info('filter_channel_business: ' + channel + '--business_id--' + v.business_id);
continue; continue;
} }
// end // end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment