Chinaunix首页 | 论坛 | 博客
  • 博客访问: 659889
  • 博文数量: 53
  • 博客积分: 830
  • 博客等级: 准尉
  • 技术积分: 1089
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-31 18:23
文章存档

2019年(1)

2018年(1)

2016年(1)

2015年(1)

2014年(12)

2013年(4)

2012年(33)

分类: IT业界

2012-09-17 12:39:07

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;
}

阅读(1591) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~