|
|
@@ -13,7 +13,6 @@ import ( |
|
|
|
"encoding/json" |
|
|
|
"fmt" |
|
|
|
"github.com/jinzhu/copier" |
|
|
|
"github.com/syyongx/php2go" |
|
|
|
"github.com/tidwall/gjson" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
@@ -104,29 +103,29 @@ func GetTaskDetail(appId string, tmp []int64) { |
|
|
|
tmpIn.TaskEndTime = int(time.Now().Unix() - 10) |
|
|
|
} |
|
|
|
if tmpIn.Appid == "tt8a93fc2e15affaaa01" { |
|
|
|
tmp2 := md.Cinema5bmsData{ |
|
|
|
Description: "", |
|
|
|
ImageUrl: tmpIn.TaskIcon, |
|
|
|
Material: "", |
|
|
|
OnlineTime: time.Unix(int64(tmpIn.TaskStartTime), 0).Format("2006-01-02 15:04:05"), |
|
|
|
Type: "fenghuang", |
|
|
|
Title: tmpIn.TaskName, |
|
|
|
UpdateTime: int(time.Now().Unix()), |
|
|
|
Time: tmpIn.TaskStartTime, |
|
|
|
Appid: "tt8a93fc2e15affaaa01", |
|
|
|
Id: utils.StrToInt(tmpIn.VideoId), |
|
|
|
IsClose: 0, |
|
|
|
IsHot: 0, |
|
|
|
FirstCate: "story", |
|
|
|
SecondCate: "", |
|
|
|
Platform: "tikTok", |
|
|
|
} |
|
|
|
if tmpIn.TaskEndTime < int(time.Now().Unix()) { |
|
|
|
tmp2.IsClose = 1 |
|
|
|
} |
|
|
|
uniqueId := php2go.Md5(tmp2.Appid + "_" + tmp2.Type + "_" + tmp2.FirstCate + "_" + utils.IntToStr(tmp2.Id)) |
|
|
|
fmt.Println(uniqueId) |
|
|
|
commAddNew(uniqueId, tmp2) |
|
|
|
//tmp2 := md.Cinema5bmsData{ |
|
|
|
// Description: "", |
|
|
|
// ImageUrl: tmpIn.TaskIcon, |
|
|
|
// Material: "", |
|
|
|
// OnlineTime: time.Unix(int64(tmpIn.TaskStartTime), 0).Format("2006-01-02 15:04:05"), |
|
|
|
// Type: "fenghuang", |
|
|
|
// Title: tmpIn.TaskName, |
|
|
|
// UpdateTime: int(time.Now().Unix()), |
|
|
|
// Time: tmpIn.TaskStartTime, |
|
|
|
// Appid: "tt8a93fc2e15affaaa01", |
|
|
|
// Id: utils.StrToInt(tmpIn.VideoId), |
|
|
|
// IsClose: 0, |
|
|
|
// IsHot: 0, |
|
|
|
// FirstCate: "story", |
|
|
|
// SecondCate: "", |
|
|
|
// Platform: "tikTok", |
|
|
|
//} |
|
|
|
//if tmpIn.TaskEndTime < int(time.Now().Unix()) { |
|
|
|
// tmp2.IsClose = 1 |
|
|
|
//} |
|
|
|
//uniqueId := php2go.Md5(tmp2.Appid + "_" + tmp2.Type + "_" + tmp2.FirstCate + "_" + utils.IntToStr(tmp2.Id)) |
|
|
|
//fmt.Println(uniqueId) |
|
|
|
//commAddNew(uniqueId, tmp2) |
|
|
|
} |
|
|
|
CommAddTaskDetail(utils.Int64ToStr(tmpIn.TaskId), tmpIn) |
|
|
|
} |
|
|
|