作者 yangfu

fix:1.机会补充详情,默认表单类型 text

... ... @@ -2387,6 +2387,12 @@ func ChanceReviseDetail(header *protocol.RequestHeader, request *protocol.Chance
json.Unmarshal([]byte(detail.Data), &rsp.ChanceReviseData)
rsp.ChanceReviseData.Provider = provider
rsp.ChanceReviseData.CreateTime = detail.CreateAt.Unix() * 1000
//旧数据没有inputType的 默认值:text
for i := range rsp.ChanceReviseData.DiffContents {
if len(rsp.ChanceReviseData.DiffContents[i].InputType) == 0 {
rsp.ChanceReviseData.DiffContents[i].InputType = protocol.InputText
}
}
rsp.ChanceId = detail.ChanceId
return
}
... ...