Commit b87a00dc authored by 邱阿朋's avatar 邱阿朋

refactor(main): 优化代码功能和依赖

- 更新 domain_page函数调用,增加 logger 参数- 添加 ldap3 依赖
- 修复 return_goods.py 中的类型转换问题
parent 834d83a7
......@@ -108,7 +108,7 @@ class ReturnGoods(AutoInterface):
for _, item_row in data.iterrows():
push_data = {
'return_id': item_row.get('Return ID', ''),
'return_id': str(item_row.get('Return ID', '')),
'asin': item_row.get('ASIN', ''), # ASIN
'order_no': item_row.get('Purchase order', ''), # 订单号
'sku_quantity': item_row.get('Quantity', 0), # 退回数量
......
......@@ -47,7 +47,7 @@ if __name__ == '__main__':
raise Exception("请输入文件名")
# 切换域名
domain.domain_page(page, country)
domain.domain_page(logger, page, country)
# 执行功能
object_instate.run(file_name)
# 推送数据到队列中
......
......@@ -10,4 +10,5 @@ pika==1.3.2
xmltodict==0.14.2
python-dotenv==1.0.1
paramiko==3.5.0
ttkbootstrap==1.10.1
\ No newline at end of file
ttkbootstrap==1.10.1
ldap3==2.9.1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment