Commit 5b33f505 by 蒋勇

d

parent 3dd34c7f
国外
\ No newline at end of file
新疆维吾尔自治区
\ No newline at end of file
......@@ -40,7 +40,8 @@ class ProductService extends ServiceBase {
company_id:p.company_id,
skucode:p.skucode?p.skucode:self.getUUID(),
skuname:p.skuname?p.skuname:p.name,
sptags:p.sptags
sptags:p.sptags,
channeltags:p.channeltags
}
productprices.push(pps)
})
......
......@@ -29,7 +29,7 @@ class ProductpriceService extends ServiceBase {
regioninfo["label"] = regionName
//按照名字去取地区编码
let areainfos = rs.filter(f => {
if (f.name == regionName) {
if (f.name.indexOf(regionName)>=0) {
return true
} else {
return false
......
......@@ -35,14 +35,16 @@ function findTitlePath(items, findstr, results) {
let product = {}
product.code = xp.path_code + xp.id
results = []
findTitlePath(rs, xp.region_name, results)
//findTitlePath(rs, xp.region_name, results)
if(results.length==0 || !results[0]){
fs.writeFileSync("./a.txt",xp.region_name)
}
product.regionpath = results[0]
//product.regionpath = results[0]//反查国家标准地区名称
product.regionpath=xp.region_name
product.productcatpath = "产品分类" + xp.path_name
product.name = product.productcatpath + "~" + product.regionpath
product.sptags = xp.servicer_name
product.channeltags="腾讯"
product.desc=product.name
product.company_id=1
//构造策略ids
......
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