|
|
@ -284,14 +284,14 @@ int32_t LP_sock_check(char *typestr,void *ctx,char *myipaddr,int32_t pubsock,int |
|
|
|
#ifdef FROM_JS |
|
|
|
printf("%s RECV.(%s)\n",typestr,(char *)ptr); |
|
|
|
#endif |
|
|
|
cJSON *recvjson; //char *mstr,*cstr;
|
|
|
|
cJSON *recvjson; char *mstr,*cstr; |
|
|
|
if ( (recvjson= cJSON_Parse((char *)ptr)) != 0 ) |
|
|
|
{ |
|
|
|
/*if ( (mstr= jstr(recvjson,"method")) != 0 && strcmp(mstr,"uitem") == 0 &&
|
|
|
|
if ( (mstr= jstr(recvjson,"method")) != 0 && strcmp(mstr,"uitem") == 0 && |
|
|
|
(cstr= jstr(recvjson,"coin")) != 0 && strcmp(cstr,"REVS") == 0 ) |
|
|
|
{ |
|
|
|
printf("%s RECV.(%s)\n",typestr,(char *)ptr); |
|
|
|
}*/ |
|
|
|
} |
|
|
|
safecopy(methodstr,jstr(recvjson,"method"),sizeof(methodstr)); |
|
|
|
free_json(recvjson); |
|
|
|
} |
|
|
|