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
84f8b504
Commit
84f8b504
authored
Nov 13, 2019
by
方斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
z
parent
5ccea0fa
Pipeline
#16235
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
8 deletions
+33
-8
product.js
app/service/gjj/product.js
+33
-8
No files found.
app/service/gjj/product.js
View file @
84f8b504
...
...
@@ -507,16 +507,33 @@ class ProductService extends Service {
}
url
=
this
.
config
.
PHP_URL
+
'/app/track/url?url='
+
encodeURI
(
url
)
+
'&source=51gjj&location='
+
location
;
ctx
.
logger
.
info
(
v
.
cities
)
if
(
v
.
cities
&&
v
.
cities
.
length
>
0
&&
city
!=
''
&&
v
.
cities
.
indexOf
(
city
))
{
in_city
=
true
;
let
tmp
=
{};
if
(
v
.
cities
&&
v
.
cities
.
length
>
0
&&
city
!=
''
)
{
if
(
v
.
cities
.
indexOf
(
city
))
{
tmp
=
{
type
:
v
.
type
,
business_id
:
v
.
business_id
,
name
:
v
.
name
,
logo
:
v
.
logo
,
alias
:
v
.
alias
,
rate_title
:
rateTitle
,
rate
,
min_amount
:
v
.
min_amount
,
max_amount
:
v
.
max_amount
,
sort
:
v
.
recommend_sorter
,
state
:
v
.
state
,
url
,
business_notice
:
v
.
business_notice
,
feature
:
v
.
feature
,
abridge_desc
:
v
.
abridge_desc
,
front_image
:
v
.
front_image
,
back_image
:
v
.
back_image
,
};
}
ctx
.
logger
.
info
(
type
)
ctx
.
logger
.
info
(
in_city
)
//,目前只处理普通贷款列表,至于其他的,后面再说
if
(
!
in_city
&&
type
==
4
)
continue
;
ctx
.
logger
.
info
(
'IMH-----------'
)
const
tmp
=
{
}
else
{
tmp
=
{
type
:
v
.
type
,
business_id
:
v
.
business_id
,
name
:
v
.
name
,
...
...
@@ -535,6 +552,14 @@ class ProductService extends Service {
front_image
:
v
.
front_image
,
back_image
:
v
.
back_image
,
};
}
ctx
.
logger
.
info
(
type
)
ctx
.
logger
.
info
(
in_city
)
//,目前只处理普通贷款列表,至于其他的,后面再说
if
(
!
in_city
&&
type
==
4
)
continue
;
ctx
.
logger
.
info
(
'IMH-----------'
)
ret
.
push
(
tmp
);
}
...
...
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