commit 2021-12-16]17:34:06
This commit is contained in:
parent
2a77d039a0
commit
0f1e5e610e
@ -29,14 +29,14 @@ func compareMap(src map[string]interface{}, dst map[string]interface{}) bool {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
srcV, ok := value.(int)
|
srcV, ok := value.(float64)
|
||||||
if !ok {
|
if !ok {
|
||||||
srcV = int(value.(float64))
|
srcV = float64(value.(int))
|
||||||
}
|
}
|
||||||
|
|
||||||
dstV, ok := dst[key].(int)
|
dstV, ok := dst[key].(float64)
|
||||||
if !ok {
|
if !ok {
|
||||||
dstV = int(dst[key].(float64))
|
dstV = float64(dst[key].(int))
|
||||||
}
|
}
|
||||||
|
|
||||||
if srcV != dstV {
|
if srcV != dstV {
|
||||||
|
Loading…
Reference in New Issue
Block a user