Skip to content

Commit 603c9cb

Browse files
committed
chore: remove pre modules
- 移除 预处理模块
1 parent 005c716 commit 603c9cb

File tree

5 files changed

+6
-58
lines changed

5 files changed

+6
-58
lines changed

altfe/bridge.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def __init__(self):
1818
"static": self.rootPath + "app/lib/static/",
1919
"common": self.rootPath + "app/lib/common/",
2020
"core": self.rootPath + "app/lib/core/",
21-
"pre": self.rootPath + "app/pre/",
2221
"plugin": self.rootPath + "app/plugin/"
2322
}
2423

@@ -34,7 +33,7 @@ def run(self, hint=False):
3433

3534
def read_all_modules(self):
3635
r = []
37-
conf = classRoot.loadConfig(self.rootPath + "app/config/switch.yml")["OnOff"]
36+
conf = {}
3837
for moduleType in self.APP_PATH:
3938
rootModulePath = self.APP_PATH[moduleType]
4039
files = os.listdir(rootModulePath)

altfe/handle.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def do(cls, cmd):
2222
return {"code": 0, "msg": "no method"}
2323

2424
# 执行预处理函数
25-
preFuns = cls.osGet("PRE")
26-
for name in preFuns:
27-
if not preFuns[name].run(rCMD):
28-
return {"code": 403, "msg": f"[PRE] Forbidden by {name}"}
25+
# preFuns = cls.osGet("PRE")
26+
# for name in preFuns:
27+
# if not preFuns[name].run(rCMD):
28+
# return {"code": 403, "msg": f"[PRE] Forbidden by {name}"}
2929

3030
# 执行指令并返回
3131
try:

app/config/language/en.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ app.core.biu:
2424
fail_by_cloudflare_captcha: "Encountered Cloudflare protection during login, may be due to network environment issues. You can try to get a new token or wait a moment before logging in again"
2525
is_need_to_get_token: "Continue? (y / n): "
2626
ready:
27-
hint_run: "RunAt"
27+
hint_run: "Run At"
2828
hint_how_to_use: "Open the address in a modern browser"
2929
hint_version: "Version"
3030
hint_function_types: "API Type"

app/config/switch.yml

-19
This file was deleted.

app/pre/verify_referrer.py

-32
This file was deleted.

0 commit comments

Comments
 (0)