Action()
{
int i=0;
char temp[20];
int j=0;
web_set_max_html_param_len("2048");
web_reg_find("Search=Body",
"SaveCount=count",
"Text={\"code\":\"A00006\",\"msg\":\"\"",
LAST);
//'errno' => '1'
// web_reg_save_param("error",
// "LB=",
// "RB=",
// "Search=Body",
// LAST);
web_reg_save_param("error1",
"LB=\"id\":\"",
"RB=\",",
"NotFound=ERROR",
"Search=All",
"Ord=All",
LAST);
lr_start_transaction("获取同伴信息");
web_url("partner",
"URL=xxxxxx",
"Resource=1",
"RecContentType=application/json",
"Referer=",
"Snapshot=t12.inf",
LAST);
if(atoi(lr_eval_string("{count}"))>0){
lr_end_transaction("获取同伴信息", LR_PASS);
j=atoi(lr_eval_string("{error1_count}"));
for(i=1;i<=j;i++)
{
sprintf(temp,"{error1_%d}\0",i);
lr_error_message("%s",lr_eval_string(temp));
}
}else{
lr_end_transaction("获取同伴信息", LR_FAIL);
lr_error_message("异常=【%s】",lr_eval_string("{error}"));
return (0);
}
return 0;
}
阅读(1684) | 评论(0) | 转发(0) |