pumpkin-zbh / amqp_comm_example

Should not have unused variables JS-0128
Bug risk
Major
a year agoa year old
'messageId' is assigned a value but never used. Allowed unused vars must match /^_/u
24//接收云端推送消息的回调函数。
25container.on('message', function (context) {
26    let  msg = context.message;
27    let messageId = msg.message_id;28    let topic = msg.application_properties.topic;
29    let content =JSON.parse(Buffer.from(msg.body.content).toString().replace(/\'/g, '"'));
30    if (topic.indexOf('/user/update') !== -1) {