refactor(env): 使用环境变量管理配置信息
- 引入 dotenv 模块,加载环境变量- 修改 RabbitMQClient 和 RedisClient 类,从环境变量获取配置信息 - 更新 payment.py、return_goods.py 和 spa_search.py,使用新的环境变量配置 - 在 requirements.txt 中添加 python-dotenv 依赖
Showing
| ... | ... | @@ -8,3 +8,5 @@ requests==2.32.3 |
| redis==5.0.8 | ||
| pika==1.3.2 | ||
| xmltodict==0.14.2 | ||
| python-dotenv==1.0.1 | ||
| paramiko==3.5.0 | ||
| \ No newline at end of file |
Please register or sign in to comment