TA的每日心情 | 开心 2019-2-1 16:33 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
Action()
{
int is_digit = TRUE;
char ParamBuf[11];
lr_save_string("13502409335","ParamBuf");
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=TSERVER:1007", LrsLastArg);
lrs_receive("socket0", "buf0", LrsLastArg);
lr_think_time(4);
lrs_save_param_ex("socket0", "user", lr_eval_string("{ParamBuf}"), 0,
strlen(lr_eval_string("{ParamBuf}")),NULL, "param");
// while(is_digit){
lrs_send("socket0", "buf1", LrsLastArg);
lrs_receive("socket0", "buf2", LrsLastArg);
// }
lr_output_message ("param1: %s", lr_eval_string("{ParamBuf}"));
lr_output_message ("param1: %s", lr_eval_string("{param}"));
return 0;
}
data.ws部分:
send buf1 76
"*HQ201{param},AH&A1131092309724211316405670000261109&B0700000000&F0000&K10000#"
如何把lr_save_string("13502409335","ParamBuf");里的13502409335参数化,使得每次都不一样。 |
|