Commit 5637b727 authored by 邱阿朋's avatar 邱阿朋

feat(core): 更新依赖并优化处理器逻辑

- 添加 psutil 和 py-cpuinfo依赖项
-修正 ASIN 字段获取方式,统一为大写 'ASIN'
- 注释掉处理器中的 run 和 push_data_queue 方法调用
-重构域名登录逻辑,使用 LoginDomain 类进行状态设置和登录检查
parent f94fcf53
......@@ -83,7 +83,7 @@ class ReturnGoods(AutoInterface):
})
for _, item_row in item_data_result.iterrows():
asin = item_row.get('Asin', None)
asin = item_row.get('ASIN', None)
country_key = f"{asin}_{self.country}"
relation = relations_dict.get(country_key, {})
erp_sku = relation.get('erp_sku', "")
......
......@@ -192,8 +192,8 @@ class VCManagerGUI(ttk.Window):
self.processor = self._get_processor(action_value, country_value)
if self.processor:
self.processor.set_running(True)
self.processor.run("")
self.processor.push_data_queue()
# self.processor.run("")
# self.processor.push_data_queue()
self.logger.info("操作成功完成!")
except Exception as e:
......
......@@ -216,9 +216,10 @@ class VCManagerGUI(ttk.Window):
# 创建处理器实例
processor = self.create_processor(params)
domain.set_switch_status(True)
# 切换域名
domain.domain_page(self.logger, self.page, self.country_var.get())
domain_login = domain.LoginDomain(self.logger, self.page, self.country_var.get())
domain_login.set_status(True)
domain_login.login_check()
# 执行核心操作
self.log(f"开始执行 {params['action']} 操作...")
......
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