6 Commits

Author SHA1 Message Date
Ching
80103802cc feat(models): 优化商品名称获取逻辑
All checks were successful
continuous-integration/drone/push Build is passing
根据商品信息中的多个字段获取商品名称,并在没有匹配字段时设置默认值为"暂无"。
2025-02-09 20:55:01 +08:00
Ching
2cd9b6e106 feat(models): 优化添加商品逻辑,支持扫码记录和更新商品信息
All checks were successful
continuous-integration/drone/push Build is passing
- 优化handle_add_product函数,支持扫码记录和更新商品信息
- 当扫描到已存在的商品时,获取商品信息并记录扫码日志
- 当扫描到新商品时,通过爬虫获取商品信息并记录扫码日志
- 添加BarcodeDB模型的add_product方法,用于添加或更新商品信息
2025-02-09 18:57:37 +08:00
Ching
789111e629 feat(models): 优化scanlog获取商品名字逻辑
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-09 18:18:05 +08:00
Ching
40129961a0 feat(models): 添加扫码日志记录功能
All checks were successful
continuous-integration/drone/push Build is passing
为了记录扫码操作,添加了一个新的方法add_log到ScanLog模型中。
2025-02-09 18:16:30 +08:00
Ching
d8887eaf5b fix(models): 优化ScanLog查询方法
简化ScanLog模型中查询今天日志的方法,使用更简洁的ORM查询方式。
2025-02-09 18:14:59 +08:00
Ching
fe4be1b06e feat(app): 添加扫描日志页面
All checks were successful
continuous-integration/drone/push Build is passing
添加了一个新的页面logs.html,用于显示今天的扫描日志。用户可以在该页面上查看扫描的条码和相关信息。
2025-02-09 18:06:13 +08:00