添加过期提示

This commit is contained in:
戴育兵 2026-01-06 16:12:57 +08:00
commit 685930523b
4 changed files with 3955 additions and 7537 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.8
// - protoc v3.21.1
// - protoc v6.32.0--rc2
// source: pb/fiee/cast.proto
package cast

View File

@ -1381,6 +1381,11 @@ func ImportWorkBatch(ctx *gin.Context) {
req.ImageWorks = append(req.ImageWorks, temp)
continue
}
if mediaInfoResp.Info.Expired != 1 {
temp.Remark = fmt.Sprintf("TIKTOK账号名的套餐已过期")
req.ImageWorks = append(req.ImageWorks, temp)
continue
}
temp.PublishConfig1 = &cast.PublishConfig{
ForbidComment: 1,
PublicType: 1,
@ -1405,6 +1410,11 @@ func ImportWorkBatch(ctx *gin.Context) {
req.ImageWorks = append(req.ImageWorks, temp)
continue
}
if mediaInfoResp.Info.Expired != 1 {
temp.Remark = fmt.Sprintf("INS账号名的套餐已过期")
req.ImageWorks = append(req.ImageWorks, temp)
continue
}
temp.PublishConfig1 = &cast.PublishConfig{
ForbidComment: 1,
PublicType: 1,
@ -1487,6 +1497,11 @@ func ImportWorkBatch(ctx *gin.Context) {
req.ImageWorks = append(req.ImageWorks, temp)
continue
}
if mediaInfoResp.Info.Expired != 1 {
temp.Remark = fmt.Sprintf("Bluesky账号名的套餐已过期")
req.ImageWorks = append(req.ImageWorks, temp)
continue
}
temp.PublishConfig1 = &cast.PublishConfig{
ForbidComment: 1,
PublicType: 1,