|
|
@ -2,7 +2,6 @@ package consumers |
|
|
|
|
|
|
|
import ( |
|
|
|
"crypto/rc4" |
|
|
|
"encoding/hex" |
|
|
|
"fmt" |
|
|
|
"goInOut/adaptors" |
|
|
|
"goInOut/consumers/HBJCAS" |
|
|
@ -107,10 +106,6 @@ func (the *consumerJYESNJZX) getEsAggData() { |
|
|
|
log.Printf("esAggResultStr[%s]", esAggResultStr) |
|
|
|
|
|
|
|
needPushes := adaptor.Transform(structId, factorId, esAggResultStr) |
|
|
|
for i := range needPushes { |
|
|
|
needPushes[i].Payload = the.crc16rc4(needPushes[i].Payload) |
|
|
|
log.Printf("topic[%s],Payload=> %s", needPushes[i].Topic, hex.EncodeToString(needPushes[i].Payload)) |
|
|
|
} |
|
|
|
|
|
|
|
if len(needPushes) > 0 { |
|
|
|
the.ch <- needPushes |
|
|
|