Commit be48f16d authored by 方斌's avatar 方斌

z

parent 4b82a0e6
Pipeline #16243 passed with stage
in 10 seconds
......@@ -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----------')
}
......
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