ziwen 1 år sedan
förälder
incheckning
47e2f8a5e0

+ 1 - 0
controllers/cygx/yanxuan_special.go

@@ -62,6 +62,7 @@ func (this *YanxuanSpecialController) Add() {
 		ModifyTime: time.Now(),
 		HeadImg:    utils.CYGX_YANXUAN_SPECIAL_HEAD_IMG_URL + strconv.Itoa(rnd) + ".png",
 		BgImg:      utils.CYGX_YANXUAN_SPECIAL_BG_IMG_URL + strconv.Itoa(rnd) + ".png",
+		BgImgPc:    utils.CYGX_YANXUAN_SPECIAL_BG_IMG_URL_PC + strconv.Itoa(rnd) + ".png",
 		Status:     1,
 	}
 

+ 1 - 0
models/cygx/cygx_yanxuan_special_user.go

@@ -18,6 +18,7 @@ type CygxYanxuanSpecialAuthor struct {
 	ModifyTime   time.Time // 修改时间
 	HeadImg      string    // 头像
 	BgImg        string    // 背景图
+	BgImgPc      string    // pc背景图
 	Status       int       // 1启用2禁用
 }
 

+ 1 - 0
utils/constants.go

@@ -519,4 +519,5 @@ const (
 const (
 	CYGX_YANXUAN_SPECIAL_HEAD_IMG_URL = "https://hzstatic.hzinsights.com/cygx/yanxuan_special/head_img/Mask%20group-"
 	CYGX_YANXUAN_SPECIAL_BG_IMG_URL = "https://hzstatic.hzinsights.com/cygx/yanxuan_special/bg_img/Mask%20group-"
+	CYGX_YANXUAN_SPECIAL_BG_IMG_URL_PC = "https://hzstatic.hzinsights.com/cygx/yanxuan_special/bg_img/pc/"
 )