Commit 58ba6b0f authored by duanjinfei's avatar duanjinfei

compatible llama chinese

parent 303b33c7
...@@ -795,10 +795,10 @@ func parseData(readBody []byte) interface{} { ...@@ -795,10 +795,10 @@ func parseData(readBody []byte) interface{} {
log.WithError(err).Error("Parse json raw message failed") log.WithError(err).Error("Parse json raw message failed")
return bytes.NewBuffer(readBody).String() return bytes.NewBuffer(readBody).String()
} }
if m["output"] == nil || len(m["output"]) == 0 { //if m["output"] == nil || len(m["output"]) == 0 {
log.WithField("output", nil).Warn("The container resp") // log.WithField("output", nil).Warn("The container resp")
return nil // return nil
} //}
var outputTwoArray [][]string var outputTwoArray [][]string
if err := json.Unmarshal(m["output"], &outputTwoArray); err != nil { if err := json.Unmarshal(m["output"], &outputTwoArray); err != nil {
log.WithField("err", err).Warn("parse two array output filed failed:") log.WithField("err", err).Warn("parse two array output filed failed:")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment