Commit 82cbffbb authored by 任国军's avatar 任国军

add channel

parent 51a5a1e9
......@@ -400,6 +400,7 @@ class ProductService extends Service {
// 以下代码是为了处理渠道包下不展示特殊的4个业务
// start
const { ctx } = this;
const channel = ctx.cookies.get('channel', { signed: false });
const user_sid = isNaN(ctx.oldUserId) ? ctx.helper.decodeUserSid(ctx.oldUserId) : ctx.oldUserId;
let filter = { where: { sid: user_sid } };
let userInfo = {};
......@@ -430,6 +431,11 @@ class ProductService extends Service {
}
}
if (channel == 'n_1_10000_tencent1') {
place_cid = 5492;
} else if (channel == 'n_1_10000_51gjjyyb') {
place_cid = 5719;
}
ctx.logger.info('get_phone_by_user_place:' + place_cid);
// end
......@@ -488,7 +494,7 @@ class ProductService extends Service {
async formatProducts(products, type) {
const { ctx } = this;
const ret = [];
const channel = ctx.channel;
const channel = ctx.cookies.get('channel', { signed: false });
let location = 'loan_channel';
let city = '';
......@@ -523,6 +529,11 @@ class ProductService extends Service {
}
}
if (channel == 'n_1_10000_tencent1') {
place_cid = 5492;
} else if (channel == 'n_1_10000_51gjjyyb') {
place_cid = 5719;
}
ctx.logger.info('get_phone_by_user_place:' + place_cid);
// 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