This commit is contained in:
suyl
2021-06-09 18:17:09 +08:00
parent fd783476e4
commit 1bce2e36af
2 changed files with 12 additions and 0 deletions

View File

@@ -986,6 +986,17 @@ func UpdateSkuName(ctx *jxcontext.Context, nameID int, payload map[string]interf
if payload["eclpID"] != nil {
eclpID = payload["eclpID"].(string)
}
//美团商品传视频
//这里实时传一下
if valid["video"] != nil {
video := valid["video"].(string)
//删除
if video == "" {
} else {
}
}
txDB, _ := dao.Begin(db)
defer func() {
if r := recover(); r != nil {

View File

@@ -201,6 +201,7 @@ type SkuName struct {
PreparationTime int `orm:"default(1)" json:"preparationTime"` //商品准备时长
BestSeller int `json:"bestSeller"` //畅销品 0不是 1是
Video string `json:"video"` //商品视频地址
VideoID string `orm:"column(video_id)" json:"videoID"` //商品视频美团ID
}
func (*SkuName) TableUnique() [][]string {