sydapi/DProto/JA.xml
2021-06-29 11:32:24 +08:00

102 lines
2.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" ?>
<packet extend="base">
<req>
<command>
<hex>JA</hex>
</command>
<data extend="data">
<account len="12" cn="账号" >
账号中去除校验位的最右 12 位
</account>
<pinLen len="2" cn="PIN 长度" required="false">
可选项。范围为 04 到 12。如果没有该域则生成一
个 4 位的 PIN。
</pinLen>
<algorithmKey len="1" cn="算法标识" required="false">
取值 P可选
</algorithmKey>
<encryptionAlg cn="加密算法" :if=" null != $packet.data.algorithmKey ">
<options>
<option cn="3DES(默认)">
<hex>0</hex>
</option>
<option cn="SM4">
<hex>1</hex>
</option>
</options>
</encryptionAlg>
<tailSep len="1" :if=" null != $packet.data.tail " cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为
“X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</req>
<res>
<command>
<hex>JB</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="用户存储区没有装载密钥">
<hex>12</hex>
</option>
<option cn="LMK 错误">
LMK 错误;报告给管理员。
<hex>13</hex>
</option>
<option cn="输入数据错">
<hex>15</hex>
</option>
<option cn="PIN 长度等于或大于被加密的 PIN 长度。">
<hex>24</hex>
</option>
</options>
</error>
<pinBlock :len="pingLen()" cn="PIN 块" >
LMK 对02-03下加密的导出 PINBLOCK。PINBLOCK
格式默认为 01 格式)
</pinBlock>
<tailSep len="1" required="false" cn="尾分隔">
可选项。如果显示消息尾域,则该域必须显示。值为 “X19”。
<hex>19</hex>
</tailSep>
<tail maxLen="32" required="false" cn="尾部">
可选项。最大长度为 32个字符。
</tail>
</data>
</res>
<script>
function pingLen() {
if(1 == $packet.data.encryptionAlg$option){
return 32
}else {
return 16
}
}
</script>
</packet>