Commit 757eeba0 authored by 方斌's avatar 方斌

z

parent 9fc75979
Pipeline #17872 passed with stage
in 50 seconds
......@@ -400,7 +400,7 @@ class ProductService extends Service {
// 以下代码是为了处理渠道包下不展示特殊的4个业务
// start
const { ctx } = this;
const user_sid = ctx.oldUserId;
const user_sid = isNaN(ctx.oldUserId) ? ctx.helper.decodeUserSid(ctx.oldUserId) : ctx.oldUserId;
let filter = { where: { sid: user_sid } };
const userInfo = await ctx.gjjModel.SysUser.one(filter);
ctx.logger.info('get_phone_by_user_sid:' + JSON.stringify(userInfo));
......@@ -408,8 +408,8 @@ class ProductService extends Service {
if (userInfo !== null) {
place_cid = userInfo.place_cid;
} else {
const jianbing_guest_customer_id = ctx.cookies.get('jianbing_guest_customer_id', { signed: false });
let jianbing_guest_customer_id = ctx.cookies.get('jianbing_guest_customer_id', { signed: false });
jianbing_guest_customer_id = isNaN(jianbing_guest_customer_id) ? ctx.helper.decodeUserSid(jianbing_guest_customer_id) : jianbing_guest_customer_id;
filter = { where: { sid: jianbing_guest_customer_id } };
const userInfo = await ctx.gjjModel.SysGuest.one(filter);
ctx.logger.info('jianbing_guest_customer_id:' + JSON.stringify(userInfo));
......@@ -475,28 +475,28 @@ class ProductService extends Service {
let location = 'loan_channel';
let city = '';
//以下代码是为了处理渠道包下不展示特殊的4个业务
//start
// 以下代码是为了处理渠道包下不展示特殊的4个业务
// start
const { ctx } = this;
const user_sid = ctx.oldUserId;
const user_sid = isNaN(ctx.oldUserId) ? ctx.helper.decodeUserSid(ctx.oldUserId) : ctx.oldUserId;
let filter = { where: { sid: user_sid } };
let userInfo = await ctx.gjjModel.SysUser.one(filter);
const userInfo = await ctx.gjjModel.SysUser.one(filter);
ctx.logger.info('get_phone_by_user_sid:' + JSON.stringify(userInfo));
let place_cid = 0;
if (userInfo !== null) {
place_cid = userInfo.place_cid;
} else {
const jianbing_guest_customer_id = ctx.cookies.get('jianbing_guest_customer_id', { signed: false });
let jianbing_guest_customer_id = ctx.cookies.get('jianbing_guest_customer_id', { signed: false });
jianbing_guest_customer_id = isNaN(jianbing_guest_customer_id) ? ctx.helper.decodeUserSid(jianbing_guest_customer_id) : jianbing_guest_customer_id;
filter = { where: { sid: jianbing_guest_customer_id } };
let userInfo = await ctx.gjjModel.SysGuest.one(filter);
const userInfo = await ctx.gjjModel.SysGuest.one(filter);
ctx.logger.info('jianbing_guest_customer_id:' + JSON.stringify(userInfo));
if (userInfo !== null) {
place_cid = userInfo.place_cid;
}
}
//end
// end
if(type == 4) {
let city_res = await ctx.helper.parseIp();
......
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