feat: 日志显示重试信息
This commit is contained in:
1 parent
9df64bcad4
commit
a127461b7f
5 files changed
+50
-2
No files matched your search
@@ -258,3 +258,12 @@ func MapToJsonStrFloat(m map[string]float64) string {
|
||||
}
|
||||
return string(bytes)
|
||||
}
|
||||
|
||||
func StrToMap(str string) map[string]interface{} {
|
||||
m := make(map[string]interface{})
|
||||
err := json.Unmarshal([]byte(str), &m)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
Reference in new issue
Block a user