Skip to content

Commit 21b63de

Browse files
committed
delete SimpleHac API because it will be no longer use
1 parent d866bfa commit 21b63de

4 files changed

Lines changed: 11 additions & 26 deletions

File tree

oclp_r/application_entry.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,13 @@ def __init__(self) -> None:
5050
gui_entry.EntryPoint(self.constants).start()
5151

5252
def api_link(self):
53+
if self.constants.github_proxy_link=="SimpleHac":
54+
self.constants.github_proxy_link="Default"
5355
def func():
54-
if self.constants.github_proxy_link!="SimpleHac":
55-
self.constants.kdk_api_link="https://dortania.github.io/KdkSupportPkg/manifest.json"
56-
self.constants.metallib_api_link="https://dortania.github.io/MetallibSupportPkg/manifest.json"
57-
58-
59-
if self.constants.github_proxy_link=="SimpleHac":
60-
61-
self.constants.kdk_api_link="https://next.oclpapi.simplehac.cn/KdkSupportPkg/manifest.json"
62-
self.constants.metallib_api_link="https://next.oclpapi.simplehac.cn/MetallibSupportPkg/manifest.json"
56+
self.constants.kdk_api_link="https://dortania.github.io/KdkSupportPkg/manifest.json"
57+
self.constants.metallib_api_link="https://dortania.github.io/MetallibSupportPkg/manifest.json"
58+
59+
6360
while True:
6461
hookd=threading.Thread(target=func,daemon=True)
6562
hookd.start()

oclp_r/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ def __init__(self) -> None:
275275
###https://gh-proxy.com
276276
###https://gh.llkk.cc
277277
###https://github.moeyy.xyz
278-
###https://gitapi.simplehac.top
279278
self.github_mirror: str = ""
280279

281280

oclp_r/support/updates.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ def __init__(self, global_constants: constants.Constants) -> None:
3434
def _apply_github_proxy(self, url: str) -> str:
3535
if self.constants.github_proxy_link == "Default":
3636
return url
37-
elif self.constants.github_proxy_link == "SimpleHac":
38-
return f"https://gitapi.simplehac.top/{url}"
3937
elif self.constants.github_proxy_link == "ghfast":
4038
return f"https://ghfast.top/{url}"
4139
elif self.constants.github_proxy_link == "gh-proxy":

oclp_r/wx_gui/gui_settings.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,12 @@ def __init__(self, parent: wx.Frame, title: str, global_constants: constants.Con
6060
self.frame_modal.ShowWindowModal()
6161

6262
def api_link(self):
63-
if self.constants.github_proxy_link!="SimpleHac":
64-
self.constants.kdk_api_link="https://dortania.github.io/KdkSupportPkg/manifest.json"
65-
self.constants.metallib_api_link="https://dortania.github.io/MetallibSupportPkg/manifest.json"
66-
print(f"- User Select kdk link: {self.constants.kdk_api_link}")
67-
print(f"- User Select metallib link: {self.constants.metallib_api_link}")
63+
self.constants.kdk_api_link="https://dortania.github.io/KdkSupportPkg/manifest.json"
64+
self.constants.metallib_api_link="https://dortania.github.io/MetallibSupportPkg/manifest.json"
65+
print(f"- User Select kdk link: {self.constants.kdk_api_link}")
66+
print(f"- User Select metallib link: {self.constants.metallib_api_link}")
6867

69-
if self.constants.github_proxy_link=="SimpleHac":
70-
71-
self.constants.kdk_api_link="https://next.oclpapi.simplehac.cn/KdkSupportPkg/manifest.json"
72-
self.constants.metallib_api_link="https://next.oclpapi.simplehac.cn/MetallibSupportPkg/manifest.json"
73-
74-
print(f"- User Select kdk link: {self.constants.kdk_api_link}")
75-
print(f"- User Select metallib link: {self.constants.metallib_api_link}")
68+
7669
def condition_exp(self,key:str):
7770
import json
7871
try:
@@ -918,7 +911,6 @@ def _settings(self) -> dict:
918911
"type": "choice",
919912
"choices": [
920913
"Default",
921-
"SimpleHac",
922914
"gh-proxy",
923915
"ghfast",
924916
"ghllkk",
@@ -928,7 +920,6 @@ def _settings(self) -> dict:
928920
"constants_variable": "github_proxy_link",
929921
"description": [
930922
self.trans["Default : https://dortania.github.io/"],
931-
self.trans["SimpleHac : https://next.oclpapi.simplehac.cn/"],
932923
self.trans["gh-proxy : https://gh-proxy.com/"],
933924
self.trans["ghfast : https://ghfast.top/"],
934925
self.trans["ghllkk : https://gh.llkk.cc/"],

0 commit comments

Comments
 (0)