|
9017错误
......................................
......................................
lr_start_transaction("余额查询");
//指定发送的串
lrs_set_send_buffer (socket_desc, acTest, 25 + 16 + 373);
lrs_length_send(socket_desc, "buf0", 0, LrsLastArg);
lrs_set_recv_timeout2(30,0);
//接收返回的串
lrs_receive(socket_desc, "buf1", LrsLastArg);
//把返回的串放到变量中
pcTest3=lrs_get_received_buffer (socket_desc, 0, -1, NULL);
lrs_close_socket(socket_desc);
memset(errcode, 0, sizeof(errcode));
memcpy(errcode, pcTest3 + 25 + 16 + 71, 2);
memset(successcode, 0, sizeof(successcode));
memcpy(successcode, pcTest3 + 25 + 16 + 88, 2);
lr_output_message("successcode=[%s]errcode=[%s]\n",successcode, errcode);
if (memcmp(successcode, "00", 2) == 0) {
lr_end_transaction("余额查询", LR_PASS);
}
else
{
lr_end_transaction("余额查询",LR_FAIL );
} |
|