初始化

This commit is contained in:
2026-05-26 15:57:55 +08:00
parent 4efab9dceb
commit c47f12a740
20 changed files with 270 additions and 34129 deletions
+4 -17
View File
@@ -313,7 +313,9 @@ func PageButtonList(ctx context.Context, isIos bool, peerIP string, req *proto.P
err = errors.New("服务器内部错误")
return
}
cacheSer.Cache.Set(cacheKey, buttons, 0)
if len(buttons) > 0 {
cacheSer.Cache.Set(cacheKey, buttons, 0)
}
}
if len(buttons) < 1 {
@@ -344,13 +346,6 @@ func PageButtonList(ctx context.Context, isIos bool, peerIP string, req *proto.P
}
// android下载按钮
packageUrlString := statg.Conf.URL.PackageUrl
if req.AppId == 999 && len(statg.Conf.URL.BiliPackageUrl) > 0 {
packageUrlString = statg.Conf.URL.BiliPackageUrl
} else if req.AppId == 777 && len(statg.Conf.URL.HuanqiuPackageUrl) > 0 {
packageUrlString = statg.Conf.URL.HuanqiuPackageUrl
} else if req.AppId == 444 && len(statg.Conf.URL.ManhuaPackageUrl) > 0 {
packageUrlString = statg.Conf.URL.ManhuaPackageUrl
}
packageUrlArray := strings.Split(packageUrlString, ";")
resp.AndroidButton = len(packageUrlArray)
// 是否有渠道包
@@ -366,7 +361,7 @@ func PageButtonList(ctx context.Context, isIos bool, peerIP string, req *proto.P
if err != nil {
return nil, err
}
cacheSer.Cache.Set(cacheKey, version, 2*time.Minute)
cacheSer.Cache.Set(versionKey, version, 2*time.Minute)
}
pack, serr := channelpackage.FindOneChannelPackage(ctx, bson.M{
@@ -382,13 +377,5 @@ func PageButtonList(ctx context.Context, isIos bool, peerIP string, req *proto.P
resp.HasChannelApk = true
}
// ----------------End---------------
resp.Contact = proto.ContactInfo{
Telegram: "https://t.me/madoutiktok",
Paoto: "https://ptcc.in/madouyingshi",
Madou: "http://madou101.com",
}
return
}