微信 4.0 的路径结构已经变了,小程序包在 ...\applet\packages 下,而代码还在找 ...\applet\Applet。
🔧 修复步骤
请打开文件:E:\DeskTopDownLoad\e0e1-wx-master\e0e1-wx-master\package\wx_tools.py
- 定位代码
找到第 19-21 行左右的 init 方法:
def init(self):
wx_file = CONFIG().wx_file
if wx_file == "":
print(CONFIG_YAML.Colored().red("[!] 未配置 wx 文件夹"))
exit(0)
# ❌ 错误在这里:强行拼接了 "/Applet" 和 "\Applet"
self.root_path = wx_file + "/Applet"
self.root_path2 = wx_file + "\Applet"
self.hook_thread = None
- 修改代码
将第 20、21 行修改为直接使用 wx_file(因为我们在 config.yaml 中已经配置到了 packages 目录):
def init(self):
wx_file = CONFIG().wx_file
if wx_file == "":
print(CONFIG_YAML.Colored().red("[!] 未配置 wx 文件夹"))
exit(0)
# ✅ 修改后:直接使用配置的路径,不再拼接 Applet
# 注意:请确保 config.yaml 中的 wx-file 路径是以 \packages 结尾的
self.root_path = wx_file
self.root_path2 = wx_file
self.hook_thread = None
微信 4.0 的路径结构已经变了,小程序包在 ...\applet\packages 下,而代码还在找 ...\applet\Applet。
🔧 修复步骤
请打开文件:E:\DeskTopDownLoad\e0e1-wx-master\e0e1-wx-master\package\wx_tools.py
找到第 19-21 行左右的 init 方法:
def init(self):
wx_file = CONFIG().wx_file
if wx_file == "":
print(CONFIG_YAML.Colored().red("[!] 未配置 wx 文件夹"))
exit(0)
# ❌ 错误在这里:强行拼接了 "/Applet" 和 "\Applet"
self.root_path = wx_file + "/Applet"
self.root_path2 = wx_file + "\Applet"
self.hook_thread = None
将第 20、21 行修改为直接使用 wx_file(因为我们在 config.yaml 中已经配置到了 packages 目录):
def init(self):
wx_file = CONFIG().wx_file
if wx_file == "":
print(CONFIG_YAML.Colored().red("[!] 未配置 wx 文件夹"))
exit(0)
# ✅ 修改后:直接使用配置的路径,不再拼接 Applet
# 注意:请确保 config.yaml 中的 wx-file 路径是以 \packages 结尾的
self.root_path = wx_file
self.root_path2 = wx_file
self.hook_thread = None