关于统计监控系统的协议PACKAGE_FIXED_LENGTH的值以及一些问题

小星

项目地址

https://github.com/walkor/workerman-statistics

问题

协议中的 PACKAGE_FIXED_LENGTH 的值是固定的值吗 还是怎么计算出来的
我想在统计信息中添加一个值

发送的内容

array(8) {
  ["service"]=>
  string(11) "Testservice"
  ["module"]=>
  string(10) "TestModule"
  ["interface"]=>
  string(13) "TestInterface"
  ["cost_time"]=>
  float(0.40256714820862)
  ["success"]=>
  int(0)
  ["time"]=>
  int(1614941287)
  ["code"]=>
  int(329)
  ["msg"]=>
  string(22) "这个是测试消息"
}

收的内容

array(8) {
  ["service"]=>
  string(11) "gTestservic"
  ["module"]=>
  string(10) "eTestModul"
  ["interface"]=>
  string(13) "eTestInterfac"
  ["cost_time"]=>
  float(0.40256714820862)
  ["success"]=>
  int(0)
  ["time"]=>
  int(1614941287)
  ["code"]=>
  int(329)
  ["msg"]=>
  string(22) "e这个是测试消息"
}

字符串总是错位一个

1714 0 0
0个回答

年代过于久远,无法发表回答
🔝