Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
757eeba0
Commit
757eeba0
authored
Dec 05, 2019
by
方斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
z
parent
9fc75979
Pipeline
#17872
passed with stage
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
product.js
app/service/gjj/product.js
+11
-11
No files found.
app/service/gjj/product.js
View file @
757eeba0
...
@@ -400,7 +400,7 @@ class ProductService extends Service {
...
@@ -400,7 +400,7 @@ class ProductService extends Service {
// 以下代码是为了处理渠道包下不展示特殊的4个业务
// 以下代码是为了处理渠道包下不展示特殊的4个业务
// start
// start
const
{
ctx
}
=
this
;
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
filter
=
{
where
:
{
sid
:
user_sid
}
};
const
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
));
ctx
.
logger
.
info
(
'get_phone_by_user_sid:'
+
JSON
.
stringify
(
userInfo
));
...
@@ -408,8 +408,8 @@ class ProductService extends Service {
...
@@ -408,8 +408,8 @@ class ProductService extends Service {
if
(
userInfo
!==
null
)
{
if
(
userInfo
!==
null
)
{
place_cid
=
userInfo
.
place_cid
;
place_cid
=
userInfo
.
place_cid
;
}
else
{
}
else
{
cons
t
jianbing_guest_customer_id
=
ctx
.
cookies
.
get
(
'jianbing_guest_customer_id'
,
{
signed
:
false
});
le
t
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
}
};
filter
=
{
where
:
{
sid
:
jianbing_guest_customer_id
}
};
const
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
));
ctx
.
logger
.
info
(
'jianbing_guest_customer_id:'
+
JSON
.
stringify
(
userInfo
));
...
@@ -475,28 +475,28 @@ class ProductService extends Service {
...
@@ -475,28 +475,28 @@ class ProductService extends Service {
let
location
=
'loan_channel'
;
let
location
=
'loan_channel'
;
let
city
=
''
;
let
city
=
''
;
//以下代码是为了处理渠道包下不展示特殊的4个业务
//
以下代码是为了处理渠道包下不展示特殊的4个业务
//start
//
start
const
{
ctx
}
=
this
;
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
filter
=
{
where
:
{
sid
:
user_sid
}
};
le
t
userInfo
=
await
ctx
.
gjjModel
.
SysUser
.
one
(
filter
);
cons
t
userInfo
=
await
ctx
.
gjjModel
.
SysUser
.
one
(
filter
);
ctx
.
logger
.
info
(
'get_phone_by_user_sid:'
+
JSON
.
stringify
(
userInfo
));
ctx
.
logger
.
info
(
'get_phone_by_user_sid:'
+
JSON
.
stringify
(
userInfo
));
let
place_cid
=
0
;
let
place_cid
=
0
;
if
(
userInfo
!==
null
)
{
if
(
userInfo
!==
null
)
{
place_cid
=
userInfo
.
place_cid
;
place_cid
=
userInfo
.
place_cid
;
}
else
{
}
else
{
cons
t
jianbing_guest_customer_id
=
ctx
.
cookies
.
get
(
'jianbing_guest_customer_id'
,
{
signed
:
false
});
le
t
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
}
};
filter
=
{
where
:
{
sid
:
jianbing_guest_customer_id
}
};
le
t
userInfo
=
await
ctx
.
gjjModel
.
SysGuest
.
one
(
filter
);
cons
t
userInfo
=
await
ctx
.
gjjModel
.
SysGuest
.
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
;
}
}
}
}
//end
//
end
if
(
type
==
4
)
{
if
(
type
==
4
)
{
let
city_res
=
await
ctx
.
helper
.
parseIp
();
let
city_res
=
await
ctx
.
helper
.
parseIp
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment