京东商品是否自营判定
2019-01-31 本文已影响0人
佑岷
京东商品是否自营标志是通过一定算法获取,算法如下:
def isSelf(self, productext, isnoZY, flags, venderType):
return not ((not (productext & 4096) == 0) and isnoZY == 1) and (not ((flags & 4096) == 0) or venderType == 100)
通过chrome debug 出代码:

急事儿,先撤