This commit is contained in:
pengtao 2021-12-20 10:45:16 +08:00
parent 76a151791b
commit 80aba3fcac

View File

@ -162,13 +162,13 @@ def get_inc_gamelist() -> list:
# 判断是否打折修改cuttime数值 # 判断是否打折修改cuttime数值
mm_cutOff = m_cutOff.get('cutOff') mm_cutOff = m_cutOff.get('cutOff')
mprice = m_cutOff.get('price') mprice = m_cutOff.get('price')
if int(price) != int(mprice): if round(price) != round(mprice):
temp = {} temp = {}
temp["gameid"] = gameid temp["gameid"] = gameid
temp["platform"] = platform temp["platform"] = platform
diff_gameid.append(temp) diff_gameid.append(temp)
logger.info( logger.info(
f"find {gameid} {platform} price was changed {price} {mprice}!" f"find {gameid} {platform} price was changed {round(price)} {round(mprice)}!"
) )
if not cutOff: if not cutOff:
item['cuttime'] = 0 item['cuttime'] = 0