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 { ...@@ -486,12 +486,12 @@ class ProductService extends Service {
city = city_res.content.address_detail.city.replace('市', ''); city = city_res.content.address_detail.city.replace('市', '');
} }
ctx.logger.info(city_res) ctx.logger.info(city_res)
ctx.logger.info(city)
} }
var in_city = false;
for (const v of products) { for (const v of products) {
in_city = false; console.log('imh------begin----------')
if (Number(v.type) === 2 || Number(v.type) === 3) { if (Number(v.type) === 2 || Number(v.type) === 3) {
v.rate = ''; v.rate = '';
v.rate_title = ''; v.rate_title = '';
...@@ -507,12 +507,12 @@ class ProductService extends Service { ...@@ -507,12 +507,12 @@ class ProductService extends Service {
} }
url = this.config.PHP_URL + '/app/track/url?url=' + encodeURI(url) + '&source=51gjj&location=' + location; url = this.config.PHP_URL + '/app/track/url?url=' + encodeURI(url) + '&source=51gjj&location=' + location;
ctx.logger.info(v.cities) ctx.logger.info(v.cities)
let tmp = {}; ctx.logger.info(city)
if(v.cities && v.cities.length > 0 && city != '') { if(v.cities && v.cities.length > 0 && city != '') {
console.log('imh------222----------') console.log('imh------222----------')
if(v.cities.indexOf(city)) { if(v.cities.indexOf(city)) {
console.log('imh----------------') console.log('imh----------------')
tmp = { const tmp = {
type: v.type, type: v.type,
business_id: v.business_id, business_id: v.business_id,
name: v.name, name: v.name,
...@@ -535,7 +535,7 @@ class ProductService extends Service { ...@@ -535,7 +535,7 @@ class ProductService extends Service {
} }
} else { } else {
tmp = { const tmp = {
type: v.type, type: v.type,
business_id: v.business_id, business_id: v.business_id,
name: v.name, name: v.name,
...@@ -558,7 +558,7 @@ class ProductService extends Service { ...@@ -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