|
@@ -869,7 +869,7 @@ func CheckChanceDifferent(header *protocol.RequestHeader, chance *models.Chance, |
|
@@ -869,7 +869,7 @@ func CheckChanceDifferent(header *protocol.RequestHeader, chance *models.Chance, |
869
|
if src[i].Value != v.Value {
|
869
|
if src[i].Value != v.Value {
|
870
|
isDiff = true
|
870
|
isDiff = true
|
871
|
}
|
871
|
}
|
872
|
- if len(src[i].Data) > 0 {
|
872
|
+ if len(src[i].Data) > 0 || len(v.Data) > 0 {
|
873
|
if !reflect.DeepEqual(src[i].Data, v.Data) {
|
873
|
if !reflect.DeepEqual(src[i].Data, v.Data) {
|
874
|
isDiff = true
|
874
|
isDiff = true
|
875
|
}
|
875
|
}
|
|
@@ -881,7 +881,7 @@ func CheckChanceDifferent(header *protocol.RequestHeader, chance *models.Chance, |
|
@@ -881,7 +881,7 @@ func CheckChanceDifferent(header *protocol.RequestHeader, chance *models.Chance, |
881
|
|
881
|
|
882
|
if isDiff {
|
882
|
if isDiff {
|
883
|
c := protocol.ReviseContent{
|
883
|
c := protocol.ReviseContent{
|
884
|
- Content: fmt.Sprintf("将“%v”由“%v”改为 “%v”", src[i].Label, srcValue, src[i].Value),
|
884
|
+ Content: fmt.Sprintf("将“%v”由“%v”改为“%v”", src[i].Label, srcValue, src[i].Value),
|
885
|
Label: src[i].Label,
|
885
|
Label: src[i].Label,
|
886
|
InputType: src[i].InputType,
|
886
|
InputType: src[i].InputType,
|
887
|
Data: src[i].Data,
|
887
|
Data: src[i].Data,
|