表单发送增加消息长度表单项
czhsqqc opened this issue · comments
czhsqqc commented
比如配置表单发送,协议格式内容不定长,其中一个表单项包含消息长度值,或者能够定义数据类型,通过脚本获取整个包的字节数,填入该表单
四格 commented
快速调用方式:
{{@lengthsum(1,$[2-4],$1)}}
脚本方式:
let len = bittly.lengthSum(
1,
$this.parameter.itemGetByIndex(1),
$this.parameter.itemGetByIndex(2),
);
$this.variableSet("len",len);