Commit dd401208 authored by 方斌's avatar 方斌

indexof change into includes

parent 0ef86d76
Pipeline #16586 passed with stage
in 6 seconds
......@@ -510,7 +510,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.indexOf(city)) {
if(v.cities.includes(city)) {
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