Files
kami_scripts/order/config.yaml
danial e245ab8d47 feat(order): 优化订单处理逻辑并添加新功能
- 更新 .gitignore 文件,添加日志和IDE相关目录
- 修改 config.yaml,更新提交URL和商户配置- 在 interfaces.go 中添加新方法并修改现有方法
- 优化 logger_adapter.go 中的日志记录功能
- 调整 main.go 中的定时任务间隔
- 在 order.go 中实现新的 FindRandomFailedOrders 方法
- 更新 order_service.go,添加 CSV 文件处理逻辑
- 新增 road.go 文件,实现 FindRoadByRoadUid 方法
- 修改 submit_order.go,更新订单提交逻辑
2025-06-09 23:42:06 +08:00

26 lines
518 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

database:
host: localhost
port: 3306
username: root
password: Woaizixkie!123
dbname: kami
submit_url: "https://gateway.kkknametrans.buzz"
merchants:
- name: "测试商户"
merchant_uid: "8888c9kit6bimggos5kk0c8g"
road_uid: "4444d10lepeqgjec73d5kcfg"
rate: 0.01 # 发送比例10%
schedule:
interval: 5 # 运行间隔(秒)
logging:
level: "info"
filename: "logs/order_sender.log"
max_size: 100 # MB
max_backups: 30 # 保留30天的日志
max_age: 30 # 天
compress: true