Commit 84f8b504 authored by 方斌's avatar 方斌

z

parent 5ccea0fa
Pipeline #16235 passed with stage
in 7 seconds
......@@ -507,8 +507,51 @@ 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,
};
}
} else {
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)
......@@ -516,25 +559,7 @@ class ProductService extends Service {
if(!in_city && type == 4) continue;
ctx.logger.info('IMH-----------')
const 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,
};
ret.push(tmp);
}
......
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