//请求数据{"app_id":"android","app_key":"Jsaw==","api_name":"","params":{}}
//返回数据
{"return_code":1,"return_msg":"no such api","return_params":null}
Action()
{
web_reg_save_param("return_msg",
"LB=return_msg\":\"",
"RB=\"",
LAST);
web_reg_save_param("return_code",
"LB=return_code\":\"",
"RB=\"",
LAST);
web_url("list.htm",
"URL=http://XXXXX.YYYYY.cn/api/list.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
LAST);
lr_think_time(10);
web_submit_form("exec.htm",
ITEMDATA,
"Name=requestData", "Value={\"app_id\":\"android\",\"app_key\":\"Jsaw==\",\"api_name\":\"\",\"params\":{}}", ENDITEM,
LAST);
lr_log_message("-=-------------请求成功!");
// if (atoi(lr_eval_string("{return_code}"))==1)
//lr_output_message(("11111111111111111 %s",lr_eval_string("{return_code}")));
// lr_message ("return_msg:%s", lr_eval_string("{return_msg}"));
return 0;
}
1. 我想输出整串返回的数据{"return_code":1,"return_msg":"no such api","return_params":null}
2. 我想输出 return_code的数据
我注释的语句不能输出我想要的数据,求助...