|
@@ -43,7 +43,10 @@ func EggEnergyStartExchangeGreenEnergyConsume(queue md.MqQueue) { |
|
|
"body": res.Body, |
|
|
"body": res.Body, |
|
|
"err": err.Error(), |
|
|
"err": err.Error(), |
|
|
})) |
|
|
})) |
|
|
_ = res.Reject(true) //TODO::拒绝 |
|
|
|
|
|
|
|
|
_ = res.Reject(false) //TODO::拒绝 true |
|
|
|
|
|
var msg *md2.EggEnergyStructForStartExchangeGreenEnergy |
|
|
|
|
|
json.Unmarshal(res.Body, &msg) |
|
|
|
|
|
ch.Publish(queue.ExchangeName, msg, queue.RoutKey) |
|
|
} else { |
|
|
} else { |
|
|
err = res.Ack(true) |
|
|
err = res.Ack(true) |
|
|
fmt.Println("err ::: ", err) |
|
|
fmt.Println("err ::: ", err) |
|
|