fix: IMS配置下发返回200无内容处理

This commit is contained in:
TsMask
2024-03-19 16:47:22 +08:00
parent 382279aafc
commit 42134ecac4

View File

@@ -69,6 +69,11 @@ func NeConfigOMC(neInfo model.NeInfo) (map[string]any, error) {
return nil, err return nil, err
} }
// 200 成功无数据时
if len(resBytes) == 0 {
return resData, nil
}
// 序列化结果 // 序列化结果
err = json.Unmarshal(resBytes, &resData) err = json.Unmarshal(resBytes, &resData)
if err != nil { if err != nil {