Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

软件商店刷新报错 #24

Open
mslxi opened this issue Jun 20, 2022 · 1 comment
Open

软件商店刷新报错 #24

mslxi opened this issue Jun 20, 2022 · 1 comment

Comments

@mslxi
Copy link

mslxi commented Jun 20, 2022

image

@HiDolan
Copy link

HiDolan commented Jul 1, 2022

请在plugin_deployment.py 第 103 - 116 行修改如下:

 def GetCloudList(self,get):
        try:
            jsonFile = self.__setupPath + '/deployment_list.json'
            if not 'package' in session or not os.path.exists(jsonFile) or hasattr(get,'force'):
                downloadUrl = 'https://www.bt.cn/api/panel/get_deplist'
                pdata = public.get_pdata()
                tmp = json.loads(public.httpPost(downloadUrl,pdata,3))
                if not tmp: return public.returnMsg(False,'从云端获取失败!')
                public.writeFile(jsonFile,json.dumps(tmp))
                session['package'] = True
                return public.returnMsg(True,'更新成功!')
            return public.returnMsg(True,'无需更新!')
        except:
            return public.returnMsg(False,'从云端获取失败!')

即可修复 key error 错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants