...
|
...
|
@@ -746,13 +746,16 @@ func CheckChanceDifferent(header *protocol.RequestHeader, chance *models.Chance, |
|
|
reviseContents []protocol.ReviseContent
|
|
|
)
|
|
|
jsonUnmarshal(source, &src)
|
|
|
keyFunc := func(form *protocol.Form) string {
|
|
|
return fmt.Sprintf("%v_%v", form.Label, form.SectionType)
|
|
|
}
|
|
|
for i := range src {
|
|
|
mapForm[src[i].Label] = src[i]
|
|
|
mapForm[keyFunc(src[i])] = src[i]
|
|
|
}
|
|
|
for i := range dis {
|
|
|
isDiff := false
|
|
|
srcValue := ""
|
|
|
if v, ok := mapForm[dis[i].Label]; ok {
|
|
|
if v, ok := mapForm[keyFunc(dis[i])]; ok {
|
|
|
srcValue = v.Value
|
|
|
if dis[i].Value != v.Value {
|
|
|
isDiff = true
|
...
|
...
|
|