案例如下:
想获取如下数据中的productId
{"data":{"data":[ {"productId":8106765,"borrowerName":null,"productName":"消费贷D20180828-a287","productAmount":28600.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442482000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442482000,"displayTime":1535442482000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":28600.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106752,"borrowerName":null,"productName":"消费贷D20180828-a274","productAmount":30000.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442481000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442481000,"displayTime":1535442481000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":30000.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106748,"borrowerName":null,"productName":"消费贷D20180828-a270","productAmount":12000.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442481000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442481000,"displayTime":1535442481000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":12000.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106744,"borrowerName":null,"productName":"消费贷D20180828-a266","productAmount":20000.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442481000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442481000,"displayTime":1535442481000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":20000.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106743,"borrowerName":null,"productName":"消费贷D20180828-a264","productAmount":26900.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442481000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442481000,"displayTime":1535442481000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":26900.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106740,"borrowerName":null,"productName":"消费贷D20180828-a262","productAmount":28220.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442481000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442481000,"displayTime":1535442481000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":28220.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106460,"borrowerName":null,"productName":"消费贷D20180828-a252","productAmount":14900.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442121000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442121000,"displayTime":1535442121000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":14900.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106459,"borrowerName":null,"productName":"消费贷D20180828-a251","productAmount":19800.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535442121000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535442121000,"displayTime":1535442121000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":19800.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106309,"borrowerName":null,"productName":"消费贷D20180828-a250","productAmount":16000.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535441941000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535441941000,"displayTime":1535441941000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":16000.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null},{"productId":8106308,"borrowerName":null,"productName":"消费贷D20180828-a249","productAmount":23000.00,"raisedAmount":0,"repayMode":5,"repayModeEnum":"MONTHLY_REPAY","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":24,"termMode":2,"termModeEnum":"MONTH","annualRate":12.00,"minBuyAmount":100.00,"maxBuyAmount":1000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1535441941000,"endBuyTime":1535731199000,"fullTenderTime":null,"publishTime":1535441941000,"displayTime":1535441941000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":30,"lockTermMode":1,"lockTermModeEnum":"DAY","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":23000.00,"schedule":null,"minAnnualRate":null,"maxAnnualRate":null,"quotaAmount":1000000.00,"sourceType":0,"memberLevels":null,"tsfProfitAmount":0.00,"tsfProfitAmountRatio":0.000000,"templetAddRate":0,"templetAddTerm":null,"templetAddTermMode":null}],"totalRow":300},"code":1,"msg":"成功"}
首先通过web_reg_save_param_regexp函数,该函数使用需要安装4个补丁,至少要一个小时,同时,不一定能搞的定
那么通过web_reg_save_param_ex获取productId同时该productId对应的剩余金额要大于3000元
首先通过正则提取如下:
web_reg_save_param_ex("ParamName=productid","LB=productId":","RB/RE=leftAmount":[3-9][0-9]*.00,"schedule","NotFound=warning","Ordinal=All",SEARCH_FILTERS,LAST);
记得加上
web_set_max_html_param_len("2000");//因为这个实验中关联的结果比较长
缩小条件后:
随机获取到的6个关联值中的一个,通过正则提取前面的数字
Action() { //int cnt=0; char dst[10]; web_reg_save_param("AllRes","LB=","RB=","Search=Body",LAST); /* web_reg_save_param_regexp( "ParamName=productid", //"RegExp=productId":(.*?),"borrowerName":null,"productName":".*","productAmount":5000000.00,"raisedAmount":0,"repayMode":0,"repayModeEnum":"ONE_CAPITAL","loanCategory":null,"productTypeEnum":null,"productType":1,"productStatus":20,"productStatusEnum":"BIDING","productTerm":12,"termMode":2,"termModeEnum":"MONTH","annualRate":20.00,"minBuyAmount":100.00,"maxBuyAmount":5000000.00,"raise":null,"surplusBuySecond":null,"productShowStatus":20,"productShowStatusEnum":"BIDING","countDownSecond":null,"startBuyTime":1531993361000,"endBuyTime":1532275199000,"fullTenderTime":null,"publishTime":1531993361000,"displayTime":1531993361000,"valueDate":null,"expireDate":null,"period":null,"transfer":0,"canTransfer":1,"lockTerm":1,"lockTermMode":2,"lockTermModeEnum":"MONTH","unlockDate":null,"markResultDTOs":null,"planRansomDay":null,"rateChanageDay":null,"specialArea":1,"thousandProfit":0,"addRate":0.00,"leftAmount":0.00,", //"RegExp=productId":(.+?),"borrowerName":.*,"productStatusEnum":"BIDING",.*,"termMode":2,.*,"specialArea":1,.*,"leftAmount":0.00,", //"RegExp=productId":(.+?),"borrowerName":[\s\S]*,"termMode":2,[\s\S]*,"specialArea":1,.*?,"leftAmount":0.00,", //"RegExp=productId":(.+?),"borrowerName":[\s\S]*,"leftAmount":0.00,", //"RegExp=productId":(.*?),.*?roductStatusEnum":"BIDING.*?leftAmount":[1-9][0-9]*", //"RegExp=productId":(.*?),.*?roductStatusEnum":"BIDING.*?leftAmount":[1-9][0-9]*.00", //"RegExp=productId":(.*?),.*?roductStatusEnum":"BIDING.*?leftAmount":[1-9].*", //productId":(.*?),"borrowerName.*?productType":1.*?roductStatusEnum":"BIDING.*?leftAmount":[1-9][0-9]*.00 // productId":(.+?),"borrowerName.*?productType":1.*?termMode":2,.*?roductStatusEnum":"BIDING.*?leftAmount":[1-9][0-9]*.00 //productId":(.*?),"borrowerName.*?productType":1,.*?roductStatusEnum":"BIDING.*?termMode":2,.*?leftAmount":[0-9]*.00, //productId":(.*?),"borrowerName.*?productType":1,.*?roductStatusEnum":"BIDING.*?termMode":2,.*?specialArea":1,.*?,"leftAmount":[0-9]*.00, //"RegExp=productId":(.*?),"borrowerName.*?productType":1,.*?roductStatusEnum":"BIDING.*?termMode":2,.*?specialArea":1,.*?,"leftAmount":[0-9]*.00,", //"RegExp=productId":(.*?),.*?roductStatusEnum":"BIDING.*?leftAmount":[1-9][0-9]*.00$", "RegExp=productName":"(\w+)[a-zA-Z0-9\-]+","productAmount", "NotFound=warning", "Ordinal=All", SEARCH_FILTERS, "Scope=BODY", //"IgnoreRedirections=Yes", //"ContentType=utf-8", LAST); */ // web_reg_save_param_regexp( // "ParamName=productid", // //"RegExp=productId":(.*?),.*?roductStatusEnum":"BIDING.*?leftAmount":[1-9][0-9]*", // "RegExp=productId":(.*?),"borrowerName":*,"productName":"*","productAmount":*,"raisedAmount":*,"repayMode":*,"repayModeEnum":"*","loanCategory":*,"productTypeEnum":*,"productType":*,"productStatus":*,"productStatusEnum":"*","productTerm":*,"termMode":*,"termModeEnum":"*","annualRate":*,"minBuyAmount":*,"maxBuyAmount":*,"raise":*,"surplusBuySecond":*,"productShowStatus":*,"productShowStatusEnum":"*","countDownSecond":*,"startBuyTime":*,"endBuyTime":*,"fullTenderTime":*,"publishTime":*,"displayTime":*,"valueDate":*,"expireDate":*,"period":*,"transfer":*,"canTransfer":*,"lockTerm":*,"lockTermMode":*,"lockTermModeEnum":"*","unlockDate":*,"markResultDTOs":*,"planRansomDay":*,"rateChanageDay":*,"specialArea":*,"thousandProfit":*,"addRate":*,"leftAmount":0.00,", // //"RegExp=productId":(.*?),.*leftAmount":[1-9]d*.*", // "NotFound=warning", // "Ordinal=All", // SEARCH_FILTERS, // "Scope=BODY", // LAST); // web_reg_save_param_ex( // "ParamName=qqqqqqq", // "LB=aaa", // "RB=", // "SaveOffset=1", // "SaveLen=333", // SEARCH_FILTERS, // LAST); // web_reg_save_param_ex( // "ParamName=productid", // "LB=productId":", // //"RB/RE=,"borrowerName":*,"productName":"*","productAmount":*,"raisedAmount":*,"repayMode":*,"repayModeEnum":"*","loanCategory":*,"productTypeEnum":*,"productType":*,"productStatus":*,"productStatusEnum":"*","productTerm":*,"termMode":*,"termModeEnum":"*","annualRate":*,"minBuyAmount":*,"maxBuyAmount":*,"raise":*,"surplusBuySecond":*,"productShowStatus":*,"productShowStatusEnum":"*","countDownSecond":*,"startBuyTime":*,"endBuyTime":*,"fullTenderTime":*,"publishTime":*,"displayTime":*,"valueDate":*,"expireDate":*,"period":*,"transfer":*,"canTransfer":*,"lockTerm":*,"lockTermMode":*,"lockTermModeEnum":"*","unlockDate":*,"markResultDTOs":*,"planRansomDay":*,"rateChanageDay":*,"specialArea":*,"thousandProfit":*,"addRate":*,"leftAmount":0.00,", // //"RB/RE=,"borrowerName":*,"productName":"*","productAmount*specialArea":*,"thousandProfit":*,"addRate":*,"leftAmount":0.00,", // //"RB/RE=,"borrowerName":*,"productName", // "RB/RE=,"borrowerName"*leftAmount":0.00,", // "NotFound=warning", // "Ordinal=All", // SEARCH_FILTERS, // "Scope=BODY", // //"RequestUrl=/aa/bb", // //"ContentType=aaaaa", // LAST); // web_reg_save_param_ex( // "ParamName=productid", // "LB=productId":", // //"RB/RE=","price":100,"salePrice":100,"stock":[1-9][0-9]*,"buyTimesLimit", // //"RB/RE=,"borrowerName(.*)leftAmount":[1-9][0-9].*", // "RB/RE=,"borrowerName.*?productType":1,.*?roductStatusEnum":"BIDING.*?termMode":2,.*?specialArea":1,.*?,"leftAmount":[1-9][0-9]*.00,", // "NotFound=warning", // "Ordinal=All", // SEARCH_FILTERS, // LAST); // web_reg_save_param_ex( // "ParamName=productid", // "LB=productId":", // "RB/RE=,"borrowerName":null.+leftAmount*", // "Ordinal=All", // SEARCH_FILTERS, // LAST); web_set_max_html_param_len("2000"); web_reg_save_param_ex("ParamName=productid","LB=productId":","RB/RE=leftAmount":[2-9][0-9]*.00,"schedule","NotFound=warning","Ordinal=All",SEARCH_FILTERS,LAST); //web_reg_save_param_ex("ParamName=reward","LB=rewardId":","RB/RE=,"paymentNum":1,"maxLuckyTimes":1,"surplusNum":[1-9][0-9]*,"todayTotoalNum","NotFound=warning","Ordinal=All",SEARCH_FILTERS,LAST); web_submit_data("list", "Action=https://www.xiaoniu88.com/product/list", "Method=POST", "TargetFrame=", "RecContentType=application/json", "Referer=https://www.xiaoniu88.com/product/list?type=common", "Snapshot=t68.inf", "Mode=HTML", ITEMDATA, "Name=type", "Value=1", ENDITEM, "Name=termMode", "Value=2", ENDITEM, "Name=pageNum", "Value=1", ENDITEM, "Name=pageSize", "Value=10", ENDITEM, LAST); lr_output_message("正则关联第1页可购买的标的productid个数为:%s", lr_eval_string("{productid_count}")); if (atoi(lr_eval_string("{productid_count}"))>0) { lr_save_string(lr_paramarr_random("productid"), "productIdTemp"); lr_output_message("随机获取productid的值:%s",lr_eval_string("{productIdTemp}")); lr_output_message("单个productid的长度为:%d",strlen(lr_eval_string("{productIdTemp}"))); //web_save_param_length("productIdTemp",LAST); //lr_output_message("productid长度值:%d",lr_eval_string("{productIdTemp__Length}")); //web_save_param_length("productIdTemp","Base = Hexadecimal",LAST); sscanf(lr_eval_string("{productIdTemp}"),"%[0-9]",dst); lr_save_string(dst, "productId"); lr_output_message("rewardId:%s",lr_eval_string("{productId}")); } //if (strstr(lr_eval_string("{AllRes}"),"鎴愬姛") != NULL) lr_end_transaction("aa", LR_PASS);//0.0786 EncodeToCh(lr_eval_string("{AllRes}"), "AllRestemp"); lr_output_message("获取标的列表:%s", lr_eval_string("{AllRestemp}")); //lr_output_message("获取标的列表:%s", lr_eval_string("{AllRes}")); //findchar(lr_eval_string("{AllRestemp}"),"productId",&cnt); //lr_output_message("%d",cnt); //lr_output_message("获取标的列表:%d", myfind("aaaaaahaaaaaa","aah")); //sum = find_string(lr_eval_string("{AllRestemp}"),"productId"); //sum = fun(lr_eval_string("{AllRestemp}"),"成功");//27 //sum = StringFind(lr_eval_string("{AllRestemp}"),"成功");//14 // //sum = find_string(lr_eval_string("{AllRestemp}"),"成功");//33 //sum = count(lr_eval_string("{AllRestemp}"),"成功");//14 //sum = findSubStrPosition(lr_eval_string("{AllRestemp}"),"成功");//17 //sum = findSubStrPosition(lr_eval_string("{AllRestemp}"),"成功");//17 //strcpy(aaa,lr_eval_string("{AllRestemp}")); //lr_output_message("%d",sum); //lr_end_transaction("aa", LR_PASS); return 0; }