Commit dedfeb5c authored by 任国军's avatar 任国军

add city check

parent 5b4766e8
Pipeline #17794 passed with stage
in 8 seconds
......@@ -486,8 +486,6 @@ class ProductService extends Service {
city = city_res.content.address_detail.city.replace('市', '');
}
ctx.logger.info(city_res);
}
for (const v of products) {
......@@ -510,7 +508,7 @@ class ProductService extends Service {
ctx.logger.info(city);
if (v.cities && v.cities.length > 0 && city != '') {
ctx.logger.info('imh------222----------');
if (v.cities.includes(city)) {
if ((v.cities.includes(city) && Number(v.city_status) === 1) || (!v.cities.includes(city) && Number(v.city_status) === 0) ) {
ctx.logger.info('imh----------------');
const tmp = {
type: v.type,
......
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