Commit 9e1f09a9 authored by 方斌's avatar 方斌

z

parent 8ee5e1e0
Pipeline #17883 passed with stage
in 51 seconds
...@@ -411,7 +411,7 @@ class ProductService extends Service { ...@@ -411,7 +411,7 @@ class ProductService extends Service {
let 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; 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 } }; filter = { where: { sid: jianbing_guest_customer_id } };
const userInfo = await ctx.gjjModel.SysGuest.one(filter); const userInfo = await ctx.gjjModel.SysUser.one(filter);
ctx.logger.info('jianbing_guest_customer_id:' + JSON.stringify(userInfo)); ctx.logger.info('jianbing_guest_customer_id:' + JSON.stringify(userInfo));
if (userInfo !== null) { if (userInfo !== null) {
place_cid = userInfo.place_cid; place_cid = userInfo.place_cid;
...@@ -490,7 +490,7 @@ class ProductService extends Service { ...@@ -490,7 +490,7 @@ class ProductService extends Service {
let 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; 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 } }; filter = { where: { sid: jianbing_guest_customer_id } };
const userInfo = await ctx.gjjModel.SysGuest.one(filter); const userInfo = await ctx.gjjModel.SysUser.one(filter);
ctx.logger.info('jianbing_guest_customer_id:' + JSON.stringify(userInfo)); ctx.logger.info('jianbing_guest_customer_id:' + JSON.stringify(userInfo));
if (userInfo !== null) { if (userInfo !== null) {
place_cid = userInfo.place_cid; place_cid = userInfo.place_cid;
......
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