|
@@ -917,21 +917,21 @@ func getFirstTikTokGoodsKl(eg *xorm.Engine, officialEg *xorm.Engine, dbName stri |
|
|
} else { |
|
|
} else { |
|
|
itemData, err = zhimeng.TikTokGoodsKlNew(postData) |
|
|
itemData, err = zhimeng.TikTokGoodsKlNew(postData) |
|
|
} |
|
|
} |
|
|
if err != nil || itemData == nil || itemData.GoodsID == "" { |
|
|
|
|
|
itemData, err = CsjpGoodsKlNew(eg, officialEg, dbName, postData) |
|
|
|
|
|
isCsjp = "1" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//if err != nil || itemData == nil || itemData.GoodsID == "" { |
|
|
|
|
|
// itemData, err = CsjpGoodsKlNew(eg, officialEg, dbName, postData) |
|
|
|
|
|
// isCsjp = "1" |
|
|
|
|
|
//} |
|
|
} else { |
|
|
} else { |
|
|
itemData, err = CsjpGoodsKlNew(eg, officialEg, dbName, postData) |
|
|
itemData, err = CsjpGoodsKlNew(eg, officialEg, dbName, postData) |
|
|
isCsjp = "1" |
|
|
isCsjp = "1" |
|
|
if err != nil || itemData == nil || itemData.GoodsID == "" { |
|
|
|
|
|
if zhios_third_party_utils.InArr(tikTokBase.AuthType, []string{"2", "3"}) { |
|
|
|
|
|
itemData, err = tik_tok.OwnTikTokGoodsKlNew(tikTokBase, postData) |
|
|
|
|
|
} else { |
|
|
|
|
|
itemData, err = zhimeng.TikTokGoodsKlNew(postData) |
|
|
|
|
|
} |
|
|
|
|
|
isCsjp = "0" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//if err != nil || itemData == nil || itemData.GoodsID == "" { |
|
|
|
|
|
// if zhios_third_party_utils.InArr(tikTokBase.AuthType, []string{"2", "3"}) { |
|
|
|
|
|
// itemData, err = tik_tok.OwnTikTokGoodsKlNew(tikTokBase, postData) |
|
|
|
|
|
// } else { |
|
|
|
|
|
// itemData, err = zhimeng.TikTokGoodsKlNew(postData) |
|
|
|
|
|
// } |
|
|
|
|
|
// isCsjp = "0" |
|
|
|
|
|
//} |
|
|
} |
|
|
} |
|
|
if itemData != nil { |
|
|
if itemData != nil { |
|
|
itemData.IsCsjp = isCsjp |
|
|
itemData.IsCsjp = isCsjp |
|
|