Action()
{
//char check[];
int login;
lr_rendezvous("login");
lr_start_transaction("login");
web_reg_save_param("check","LB=KM","RB=\x00",LAST); //注册函数,寻找“需要保养”信息
web_custom_request("test",
"Method=POST",
"URL=http://192.168.xx.xx:8001/test",//请求地址
"RecContentType=application/octet-stream",
"EncType=application/octet-stream",
"Mode=HTML",
RAW_BODY_START, //请求BODY开始的标识符
//"{\"userIds\":[1300000001,1300002029,1300003163],\"type\":0}",
"{D5F8011001002C000000CCCCCCCC100011006168777577656E6B75690065}",
64,
RAW_BODY_END,
LAST);
//check={login};
//lr_message("check=%s",check);
lr_message("login=%s",lr_eval_string("{check}"));
if (strcmp(lr_eval_string("{check}"),"需要保养")==0)
{
lr_message("pass");
login=0;
}
else
{
lr_message("fail");
login=1;
}
lr_end_transaction("login", login);
return 0;
}