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
be48f16d
Commit
be48f16d
authored
Nov 13, 2019
by
方斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
z
parent
4b82a0e6
Pipeline
#16243
passed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
product.js
app/service/gjj/product.js
+7
-7
No files found.
app/service/gjj/product.js
View file @
be48f16d
...
...
@@ -486,12 +486,12 @@ class ProductService extends Service {
city
=
city_res
.
content
.
address_detail
.
city
.
replace
(
'市'
,
''
);
}
ctx
.
logger
.
info
(
city_res
)
ctx
.
logger
.
info
(
city
)
}
var
in_city
=
false
;
for
(
const
v
of
products
)
{
in_city
=
false
;
console
.
log
(
'imh------begin----------'
)
if
(
Number
(
v
.
type
)
===
2
||
Number
(
v
.
type
)
===
3
)
{
v
.
rate
=
''
;
v
.
rate_title
=
''
;
...
...
@@ -507,12 +507,12 @@ class ProductService extends Service {
}
url
=
this
.
config
.
PHP_URL
+
'/app/track/url?url='
+
encodeURI
(
url
)
+
'&source=51gjj&location='
+
location
;
ctx
.
logger
.
info
(
v
.
cities
)
let
tmp
=
{};
ctx
.
logger
.
info
(
city
)
if
(
v
.
cities
&&
v
.
cities
.
length
>
0
&&
city
!=
''
)
{
console
.
log
(
'imh------222----------'
)
if
(
v
.
cities
.
indexOf
(
city
))
{
console
.
log
(
'imh----------------'
)
tmp
=
{
const
tmp
=
{
type
:
v
.
type
,
business_id
:
v
.
business_id
,
name
:
v
.
name
,
...
...
@@ -535,7 +535,7 @@ class ProductService extends Service {
}
}
else
{
tmp
=
{
const
tmp
=
{
type
:
v
.
type
,
business_id
:
v
.
business_id
,
name
:
v
.
name
,
...
...
@@ -558,7 +558,7 @@ class ProductService extends Service {
}
console
.
log
(
'imh------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