...
|
...
|
@@ -2013,7 +2013,8 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail |
|
|
//jsonUnmarshal(chance.SelfChecks, &item.SelfChecks)
|
|
|
item.SelfChecks = agg.GetChanceSelfChecks(chance)
|
|
|
item.FormList = clearEmptyForm(item.FormList)
|
|
|
|
|
|
item.RelatedDepartmentId = chance.DepartmentId
|
|
|
item.RelatedDepartmentInfo = agg.GetDepartment(int(chance.DepartmentId))
|
|
|
if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil {
|
|
|
if len(chanceData.Videos) > 0 {
|
|
|
chanceData.Videos = strings.ReplaceAll(chanceData.Videos, "https", "http")
|
...
|
...
|
@@ -2089,6 +2090,7 @@ func ChanceDraftDetail(header *protocol.RequestHeader, request *protocol.ChanceD |
|
|
CreateTime: chance.CreateAt.Unix() * 1000,
|
|
|
UpdateTime: chance.UpdateAt.Unix() * 1000,
|
|
|
}
|
|
|
item.RelatedDepartmentId = chance.DepartmentId
|
|
|
item.RelatedDepartmentInfo = agg.GetDepartment(int(chance.DepartmentId))
|
|
|
jsonUnmarshal(chance.SourceContent, &item.FormList)
|
|
|
jsonUnmarshal(chance.SelfChecks, &item.SelfChecks)
|
...
|
...
|
|