mirror of
https://github.com/crawlerop/lpads
synced 2026-08-14 06:22:32 +07:00
newads
This commit is contained in:
parent
c3c2af4171
commit
d73d55acb0
3 changed files with 19 additions and 4 deletions
|
|
@ -53,7 +53,12 @@ function fixHash(adData) {
|
|||
let overrides = repdata
|
||||
for (i=0;i<overrides.length;i++) {
|
||||
if (overrides[i].target.hash == undefined) {
|
||||
if (adData.adName == overrides[i].target.adName && adBaseSite.adName == overrides[i].target.adBaseSite) {
|
||||
if (overrides[i].target.adPlace == undefined) {
|
||||
if (adData.adName == overrides[i].target.adName && adData.adBaseSite == overrides[i].target.adBaseSite) {
|
||||
overrides[i].target.adPlace = adData.adPlace
|
||||
}
|
||||
}
|
||||
if (adData.adPlace == overrides[i].target.adPlace) {
|
||||
overrides[i].target.hash = adData.hash
|
||||
return
|
||||
}
|
||||
|
|
@ -66,7 +71,12 @@ function fixHash2(adData) {
|
|||
let overrides = repdata
|
||||
for (i=0;i<overrides.length;i++) {
|
||||
if (overrides[i].new.hash == undefined) {
|
||||
if (adData.adName == overrides[i].new.adName && adBaseSite.adName == overrides[i].new.adBaseSite) {
|
||||
if (overrides[i].new.adPlace == undefined) {
|
||||
if (adData.adName == overrides[i].new.adName && adData.adBaseSite == overrides[i].new.adBaseSite) {
|
||||
overrides[i].new.adPlace = adData.adPlace
|
||||
}
|
||||
}
|
||||
if (adData.adPlace == overrides[i].new.adPlace) {
|
||||
overrides[i].new.hash = adData.hash
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ function parseAds(mapad) {
|
|||
adPromolyr = {"promoTitle": adPromoTxt[0], "promoDesc": adPromoTxt[1], "promoButton": adPromoTxt[2]}
|
||||
adData = {"adImage": adImg, "adPromo": adPromolyr}
|
||||
}
|
||||
ret.mapAds.push({"adName":adName,"adPlace":adPlace,"adLocation":adLocData.join(", "),"adLink":adUrlLink,"adSite":adBaseSite,"adWhy":adWta,"promoData":adData,"adPinImage":adPinlet,"id":adId,"hash":hash_md5(adName+adBaseSite)})
|
||||
ret.mapAds.push({"adName":adName,"adPlace":adPlace,"adLocation":adLocData.join(", "),"adLink":adUrlLink,"adSite":adBaseSite,"adWhy":adWta,"promoData":adData,"adPinImage":adPinlet,"id":adId,"hash":hash_md5(adName+adBaseSite+adPlace)})
|
||||
adId++
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -349,7 +349,12 @@
|
|||
function fixHash(adData) {
|
||||
for (i=0;i<overrides.length;i++) {
|
||||
if (overrides[i].target.hash == undefined) {
|
||||
if (adData.adName == overrides[i].target.adName && adBaseSite.adName == overrides[i].target.adBaseSite) {
|
||||
if (overrides[i].target.adPlace == undefined) {
|
||||
if (adData.adName == overrides[i].target.adName && adData.adBaseSite == overrides[i].target.adBaseSite) {
|
||||
overrides[i].target.adPlace = adData.adPlace
|
||||
}
|
||||
}
|
||||
if (adData.adPlace == overrides[i].target.adPlace) {
|
||||
overrides[i].target.hash = adData.hash
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue