添加执行任务命令生成和解析

This commit is contained in:
ranchuan
2023-12-25 18:47:54 +08:00
parent f354a8125d
commit ff87d33675
4 changed files with 316 additions and 3 deletions

View File

@@ -132,6 +132,7 @@ def scheme_to_byte(j:json):
t+=scheme_taskids_to_byte(j)
t+=scheme_tasks_to_byte(j)
crc=crc32(t)
print("scheme crc32=",hex(crc))
t.append(crc&0xff)
t.append((crc>>8)&0xff)
t.append((crc>>16)&0xff)