refactor(navigation): simplify main tab labels

This commit is contained in:
chengma
2026-07-17 12:24:05 +08:00
parent 01697759fc
commit 4e10cce794
29 changed files with 217 additions and 217 deletions
+3 -3
View File
@@ -980,9 +980,9 @@ class GenerateWorker(BaseWorker):
if code_text == "insufficient_points" or "点数不足" in raw:
return "点数不足,请先充值"
if code_text == "unauthorized" or "api key 无效" in raw.lower():
return "cmhub API Key 无效,请去⑤设置重填"
return "cmhub API Key 无效,请去设置重填"
if code_text in {"model_not_allowed", "no_pricing_rule"} or "模型别名" in raw or "模型配置不可用" in raw:
return "cmhub 模型别名不可用,请去⑤设置刷新别名并保存"
return "cmhub 模型别名不可用,请去设置刷新别名并保存"
if code_text == "content_blocked" or "内容安全" in raw:
return "cmhub 内容安全策略拒绝本次生成"
if code_text == "rate_limited" or "rate_limited" in lowered or "请求过于频繁" in raw:
@@ -997,7 +997,7 @@ class GenerateWorker(BaseWorker):
or "接口不存在" in raw
or str(status or "") == "404"
):
return "cmhub 网关接口不可用,请检查⑤设置中的 Base URL,或联系服务方确认网关版本"
return "cmhub 网关接口不可用,请检查设置中的 Base URL,或联系服务方确认网关版本"
if code_text == "upstream_error" or "upstream_error" in lowered or "上游" in raw:
return "cmhub 上游生成失败,请稍后重试"
if "下载 cmhub 图片失败" in raw: