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

z

parent 5ccea0fa
Pipeline #16235 passed with stage
in 7 seconds
...@@ -507,16 +507,33 @@ class ProductService extends Service { ...@@ -507,16 +507,33 @@ 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)
if(v.cities && v.cities.length > 0 && city != '' && v.cities.indexOf(city)) { let tmp = {};
in_city = true; 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, type: v.type,
business_id: v.business_id, business_id: v.business_id,
name: v.name, name: v.name,
...@@ -535,6 +552,14 @@ class ProductService extends Service { ...@@ -535,6 +552,14 @@ class ProductService extends Service {
front_image: v.front_image, front_image: v.front_image,
back_image: v.back_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); 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