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
82cbffbb
Commit
82cbffbb
authored
Feb 10, 2020
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add channel
parent
51a5a1e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
product.js
app/service/gjj/product.js
+12
-1
No files found.
app/service/gjj/product.js
View file @
82cbffbb
...
...
@@ -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
.
c
hannel
;
const
channel
=
ctx
.
c
ookies
.
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
...
...
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