本帖最后由 风吹我已散 于 2025-12-8 21:52 编辑
多次测试发现这个地方代码有问题直接返回了- def get_default_api(self, get=None):
- path = "{}/cf_default.json".format(self.data_path)
- try:
- default_cf = json.loads(public.readFile(path))
- if not default_cf.get("API Key") and default_cf.get("API Token"): # 正确应该是 if not default_cf.get("API Key") and not default_cf.get("API Token"):
- return {"status": False, "msg": "获取失败,未设置默认Cloudflare接口", "data": {}}
复制代码
|