|
@@ -105,12 +105,12 @@ func (t *TempAlarmNode) newAlarmMessage(message *protocol.Message) error {
|
|
|
if result == nil {
|
|
|
return nil
|
|
|
}
|
|
|
- j := gjson.New(result)
|
|
|
+ j := gjson.New(result.Body)
|
|
|
fmt.Printf("查询用户信息------------------:%s\r\n", j.MustToJsonString())
|
|
|
dataMap = j.GetMap("data")
|
|
|
fmt.Printf("dataMap------------------:%v\r\n", dataMap)
|
|
|
} else {
|
|
|
- j := gjson.New(message.MetaData)
|
|
|
+ j := gjson.New(message.Data)
|
|
|
dataMap = j.GetMap("status")
|
|
|
}
|
|
|
|