修正裸签命令

This commit is contained in:
cheney
2022-05-18 17:15:53 +08:00
parent 05489bfdf7
commit d30f92c991
7 changed files with 47 additions and 144 deletions
+3 -3
View File
@@ -37,9 +37,9 @@
待签名数据长度
</dataLength>
<data cn="待签名数据">
<odata cn="待签名数据">
待签名数据
</data>
</odata>
<signatureLen len="2" :value="signLen()" cn="签名的字节长度">
签名的字节长度
@@ -127,7 +127,7 @@
</res>
<script><![CDATA[
function dataLen(){
def len = $packet.data.data.length
def len = $packet.data.odata.length
def ret = new byte[2]
ret[0] = (byte)(len >> 8 & 0xFF)
ret[1] = (byte)(len & 0xFF)