This commit is contained in:
谢宇宁
2026-09-29 15:30:33 +07:00
parent 0fbdba5ccf
commit 9abe0b1b76
181 changed files with 608 additions and 18501 deletions
+6 -24
View File
@@ -1,9 +1,6 @@
package appg
import (
"strings"
"videoweb/pub/pubdef"
"github.com/patrickmn/go-cache"
)
@@ -15,13 +12,12 @@ var (
)
type GlobalCfgEx struct {
ServerAddr string `yaml:"serverAddr"`
ListenAddr string `yaml:"listenAddr"`
DHListenAddr string `yaml:"dhListenAddr"`
RunMod string `yaml:"runMod"`
TsAuthKey string `yaml:"tsAuthKey"`
SEO SEOConf `yaml:"seo"`
Tracker TrackerConf `yaml:"tracker"`
ServerAddr string `yaml:"serverAddr"`
ListenAddr string `yaml:"listenAddr"`
DHListenAddr string `yaml:"dhListenAddr"`
RunMod string `yaml:"runMod"`
TsAuthKey string `yaml:"tsAuthKey"`
SEO SEOConf `yaml:"seo"`
}
// SEOConf 站长平台验证与 SEO 相关配置。
@@ -30,17 +26,3 @@ type SEOConf struct {
BaiduHTMLFile string `yaml:"baiduHtmlFile"` // 如 baidu_verify_codeva-xxx.html
IndexNowKey string `yaml:"indexNowKey"` // Bing IndexNow 密钥,提供 /{key}.txt
}
// TrackerConf 数据上报 SDK 本地兜底(上游 reportSdkConfig 优先)。
type TrackerConf struct {
AppID string `yaml:"appId"`
EncryptedConfig string `yaml:"encryptedConfig"`
}
// TrackerAppID 返回页面 SDK 与 BFF 透传校验共用的可信应用 ID。
func TrackerAppID() string {
if id := strings.TrimSpace(Conf.Tracker.AppID); id != "" {
return id
}
return pubdef.TrackerAppId()
}