- 移除 买点 (user acquisition tracking) 子系统:dataReport SDK、eventmod 事件模型、reportdata 定时上报 job、reportser/srv_report 包装层,以及业务 侧的 ~20 处 Report* 调用点;去掉 proto.ConfigInfo 的 ReportSDKConfig 字段、DataReport yaml 配置块和 pubdef.TrackerAppId。 - 广告获取改走 versionUrl /api/stat/advitise/v2/get(appId=12),移除 adcenter(Jt) 调用;新增 POST /api/app/ads/click 异步上报; proto.AdvitiseData 别名 proxy.AdvitiseData,AList/BList 改名 AppInfoAList/AppInfoBList。 - web 后台登录取消谷歌验证码(srv_mwacc.AccLogin 去掉 code 参数),密码 正确即发放 token。 - app 端取消注册/登录/找回密码/游客登录接口及密码、token 相关代码;鉴权 中间件按 X-User-Agent 中的 devID 识别用户,首次访问自动建号,Redis 缓存 10 分钟;修改资料不再支持改密码。 - app m3u8 ticket 校验失败不再降级到 fallback 路径,仍按原 m3u8Name 返回。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
80 lines
2.6 KiB
Go
80 lines
2.6 KiB
Go
package webg
|
|
|
|
import "videoweb/pub/payCenter"
|
|
|
|
const EsIndex = "sz"
|
|
|
|
var (
|
|
Conf GlobalCfgEx
|
|
)
|
|
|
|
type GlobalCfgEx struct {
|
|
Redis struct {
|
|
Addr string `yaml:"addr"`
|
|
Db int `yaml:"db"`
|
|
Passwd string `yaml:"passwd"`
|
|
Subscribe bool `yaml:"subscribe"` // 是否有订阅功能
|
|
}
|
|
Mongodb struct {
|
|
Addr string `yaml:"addr"`
|
|
LogAddr string `yaml:"logaddr"`
|
|
}
|
|
Es struct {
|
|
Addr string `yaml:"addr"`
|
|
User string `yaml:"user"`
|
|
Pass string `yaml:"pass"`
|
|
} `yaml:"es"`
|
|
JwtKey string `yaml:"jwtKey"`
|
|
CdnKey string `yaml:"cdnKey"`
|
|
TgToken string `yaml:"tgToken"`
|
|
RunMod string `yaml:"runMod"`
|
|
Pprof bool `yaml:"pprof"`
|
|
Host string `yaml:"host"`
|
|
ListenAddr string `yaml:"listenAddr"`
|
|
VersionUrl string `yaml:"versionUrl"`
|
|
CdnDomain string `yaml:"cdnDomain"` // cdn域名
|
|
OrigDomain string `yaml:"origDomain"` // 源站域名
|
|
WebM3u8Host string `yaml:"webM3u8Host"` // web对外可访问域名(供老司机转码服务器拉取m3u8)
|
|
TsAuthKey string `yaml:"tsAuthKey"`
|
|
BucketVideoAddressV2 string `yaml:"bucketVideoAddressV2"`
|
|
LsjMediaConf struct {
|
|
AppId string `yaml:"appId"`
|
|
ApiKey string `yaml:"apiKey"`
|
|
ApiUrl string `yaml:"apiUrl"`
|
|
M3u8Yuan string `yaml:"m3u8Yuan"`
|
|
TsYuan string `yaml:"tsYuan"`
|
|
ImageYuan string `yaml:"imageYuan"`
|
|
DomainsRefreshHr int64 `yaml:"domainsRefreshHr"`
|
|
} `yaml:"lsjMediaConf"`
|
|
MediaResourceDBCfg struct { //黄果
|
|
BaseUrl string `yaml:"baseUrl"` // 域名
|
|
Merchat string `yaml:"merchat"` // 商户号
|
|
Secret string `yaml:"secret"` // 商户密钥
|
|
} `yaml:"mediaResourceDBCfg"`
|
|
PlayletMediaResourceDBCfg struct { //嘉华
|
|
BaseUrl string `yaml:"baseUrl"` // 域名
|
|
Merchat string `yaml:"merchat"` // 商户号
|
|
Secret string `yaml:"secret"` // 商户密钥
|
|
} `yaml:"playletMediaResourceDBCfg"`
|
|
NewInnerStatUrl string `yaml:"newInnerStatUrl"`
|
|
NewPayCenter payCenter.Conf `yaml:"newPayCenter"`
|
|
AiComment struct {
|
|
Url string `yaml:"url"`
|
|
AppId string `yaml:"appId"`
|
|
Secret string `yaml:"secret"`
|
|
} `yaml:"aiComment"`
|
|
Customer struct {
|
|
Url string `yaml:"url"`
|
|
AppId string `yaml:"appId"`
|
|
Secret string `yaml:"secret"`
|
|
} `yaml:"customer"`
|
|
DataCenterBackflow struct {
|
|
Key string `yaml:"key"`
|
|
SelfSourceBaseUrl string `yaml:"selfSourceBaseUrl"`
|
|
} `yaml:"dataCenterBackflow"`
|
|
}
|
|
|
|
func IsDev() bool {
|
|
return Conf.RunMod == "dev" || Conf.RunMod == "debug"
|
|
}
|