mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-02-07 17:05:37 +08:00
优化代码
This commit is contained in:
@@ -8,7 +8,7 @@ func (this *NodeRegion) DecodePriceMap() map[int64]float64 {
|
||||
return m
|
||||
}
|
||||
|
||||
err := json.Unmarshal([]byte(this.Prices), &m)
|
||||
err := json.Unmarshal(this.Prices, &m)
|
||||
if err != nil {
|
||||
// 忽略错误
|
||||
return m
|
||||
|
||||
Reference in New Issue
Block a user