diff --git a/Config/config.ini b/Config/config.ini index 415960b..0a3a2cb 100755 --- a/Config/config.ini +++ b/Config/config.ini @@ -68,7 +68,7 @@ sckey = "?????" # 本项目的信息 # PROJECT-项目名,VERSION-版本,AUTHOR-作者,TIME-创作时间 PROJECT = "jd-shopper" -VERSION = "1.0.0-Alpha" +VERSION = "1.1.1" AUTHOR = "Louis·Young" TIME = "2021-11-13" diff --git a/Core/spider.py b/Core/spider.py index 3f042a3..8467091 100644 --- a/Core/spider.py +++ b/Core/spider.py @@ -14,7 +14,7 @@ from Logger.logger import logger from Core.login import SpiderSession, QrLogin from Message.message import sendMessage from Core.timer import Timer -from Core.util import parse_json +from Core.util import get_random_useragent, parse_json class Waiter(): @@ -248,7 +248,7 @@ class Waiter(): '_': str(int(time.time() * 1000)), } headers = { - 'User-Agent': self.user_agent, + 'User-Agent': get_random_useragent(), 'Referer': 'https://item.jd.com/{}.html'.format(sku_id), } diff --git a/Docs/change-log.md b/Docs/change-log.md index 031f20e..20b93a4 100644 --- a/Docs/change-log.md +++ b/Docs/change-log.md @@ -20,8 +20,11 @@ - 修复windows web ui显示bug - 更新readme自行打包方法 +### v1.1.1 +- 修复有货商品一直提示等待上架 + ### V1.2.0-计划 - 上线价格低于设定值自动下单功能 ### v2.0.0-计划 -- 上线秒杀抢购功能 \ No newline at end of file +- 上线秒杀抢购功能 diff --git a/README.md b/README.md index 6b91a36..eb8672f 100644 --- a/README.md +++ b/README.md @@ -38,14 +38,6 @@ [查看详细日志](./Docs/change-log.md) -### v1.0.0 - -感谢 [*@FlameGate*](https://gitee.com/yanwen0614) 对本项目的贡献 - -- 修复了windows平台下的兼容性问题 -- 修复了网络波动带来的递归调用问题 -- 默认host从 *'0.0.0.0'* 迁移到 *'localhost'* - ### v1.0.1 - 修复了字体和图标显示错误的问题 @@ -57,6 +49,9 @@ - 修复windows web ui显示bug - 更新readme自行打包方法 +### v1.1.1 +- 修复有货商品一直提示等待上架 + ### 即将到来 - 上线价格低于设定值自动下单功能