removed php array convert
This commit is contained in:
@@ -35,12 +35,13 @@ routes(app);
|
|||||||
kafka.consume("NEW_OFFER_110022", (value) => {
|
kafka.consume("NEW_OFFER_110022", (value) => {
|
||||||
try {
|
try {
|
||||||
console.log("Receive NEW_OFFER_110022 message xxxx: ", value);
|
console.log("Receive NEW_OFFER_110022 message xxxx: ", value);
|
||||||
var obj = phpUnserialize(value);
|
//var obj = phpUnserialize(value);
|
||||||
console.log(obj);
|
// var obj = JSON.stringify(value);
|
||||||
if (obj.depend_uid !== undefined && obj.depend_uid.length > 10){
|
// console.log( obj);
|
||||||
console.log("We need contact people that did this job: ", obj.depend_uid);
|
// if (obj.depend_uid !== undefined && obj.depend_uid.length > 10){
|
||||||
|
// console.log("We need contact people that did this job: ", obj.depend_uid);
|
||||||
}
|
//
|
||||||
|
// }
|
||||||
} catch (exceptionVar) {
|
} catch (exceptionVar) {
|
||||||
console.log(" Error ", exceptionVar.message);
|
console.log(" Error ", exceptionVar.message);
|
||||||
}
|
}
|
||||||
@@ -49,8 +50,8 @@ kafka.consume("NEW_OFFER_110022", (value) => {
|
|||||||
kafka.consume("INTEREST_MSG", (value) => {
|
kafka.consume("INTEREST_MSG", (value) => {
|
||||||
try {
|
try {
|
||||||
console.log("Receive INTEREST_MSG message xxxx: ", value);
|
console.log("Receive INTEREST_MSG message xxxx: ", value);
|
||||||
var obj = phpUnserialize(value);
|
// var obj = phpUnserialize(value);
|
||||||
console.log(obj);
|
// console.log(obj);
|
||||||
|
|
||||||
} catch (exceptionVar) {
|
} catch (exceptionVar) {
|
||||||
console.log(" Error ", exceptionVar.message);
|
console.log(" Error ", exceptionVar.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user