|
如下:使用lrs_save_searched_string函数可以获取linkID,但输出该参数时确未得到正确输出值。请高手指教,谢谢!脚本和日志如下:
脚本:
lrs_save_searched_string("socket0",NULL,"linkID","LB=<link>","RB=</link>",1,0,-1);
lr_output_message("%s",lr_eval_string("{linkID}"));
日志:
Action.c(92): lrs_save_searched_string(socket0, null, linkID, LB=<link>, RB=</link>, 1, 0, -1)
Action.c(92): callSaveParam: whence: received, socket: socket0, offset: 0, length: -1
Action.c(92): callGetReceivedBuffer: socket: socket0 (288), offset: 0, length: -1
Action.c(92): callGetReceivedBuffer: reading last received buffer
Action.c(92): callGetReceivedBuffer: calculate save string boundaries
Action.c(92): fiCalcSearchedStringOffset: miBufLen=332, LB=<link>, miOrdinal=1
Action.c(92): fiLrsArgsParameterizationOK: mpszIn=LB=<link>
Action.c(92): Warning: The string 'link' with parameter delimiters is not a parameter.
Action.c(92): fiLrsArgsParameterizationOK: mppsfzOut=LB=<link>
Action.c(92): fiLrsBoundaryParseOK: mpsfzParameterizedArg=LB=<link>, miParameterizedArgLen=9
Action.c(92): fiCalcSearchedStringLength: miBufLen=332, RB=</link>, miOffset=140
Action.c(92): fiLrsArgsParameterizationOK: mpszIn=RB=</link>
Action.c(92): Warning: The string '/link' with parameter delimiters is not a parameter.
Action.c(92): fiLrsArgsParameterizationOK: mppsfzOut=RB=</link>
Action.c(92): fiLrsBoundaryParseOK: mpsfzParameterizedArg=RB=</link>, miParameterizedArgLen=10
Action.c(92): callGetReceivedBuffer: translate buffer to ascii
Action.c(92): Notify: Saving Parameter "linkID = cc64b1d1e1dc6a709e65984a7232d8e4"
Action.c(93): {linkID} |
|