diff --git a/app/amazon/__pycache__/price_match.cpython-312.pyc b/app/amazon/__pycache__/price_match.cpython-312.pyc index 7350826..a643421 100644 Binary files a/app/amazon/__pycache__/price_match.cpython-312.pyc and b/app/amazon/__pycache__/price_match.cpython-312.pyc differ diff --git a/app/amazon/price_match.py b/app/amazon/price_match.py index 66f4cea..b836edb 100644 --- a/app/amazon/price_match.py +++ b/app/amazon/price_match.py @@ -789,7 +789,8 @@ class AmzonePriceMatch(AmamzonBase): "secondPlace": price_2, "cartShopName" : cartShopName, "shippingFee" : f"{shipping_fee}", - "priceChangeStatus" : "改价成功", + "priceChangeStatus" : f"{adjust_prices}", + "modifyCount" : "1", }) else: recommendedPrice = recommend_price + shipping_fee @@ -807,7 +808,8 @@ class AmzonePriceMatch(AmamzonBase): "secondPlace": price_2, "cartShopName": cartShopName, "shippingFee": f"{shipping_fee}", - "priceChangeStatus": "跳过,无需改价", + "priceChangeStatus": "", + "modifyCount": "0", }) already_asin.add(asin) @@ -1347,10 +1349,10 @@ class PriceTask: "firstPlace": status.get("firstPlace") if status.get("firstPlace") else "", "secondPlace": status.get("secondPlace") if status.get("secondPlace") else "", "cartShopName": status.get("cartShopName") if status.get("cartShopName") else "", - "priceChangeStatus": "UPDATED", + "priceChangeStatus": status.get("priceChangeStatus") if status.get("priceChangeStatus") else "", "deleteSkipAsin": status.get("deleteSkipAsin", False), "removeAsin": status.get("removeAsin") if status.get("removeAsin") else "", - # "modifyCount": "2", + "modifyCount": status.get("modifyCount") if status.get("modifyCount") else "", "shippingFee": status.get("shippingFee") if status.get("shippingFee") else "", "status": status.get("statu") }