sydapi/DProto/SK.xml
2021-08-22 11:44:35 +08:00

52 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<packet extend="base">
<req>
<command>
<hex>SK</hex>
</command>
<data extend = "data">
<nRandomSize len="4" cn="产生随机数长度">
需要产生的随机数长度
注意: 最大不超过4K
</nRandomSize>
</data>
</req>
<res>
<command>
<hex>SL</hex>
</command>
<data>
<error len="2" cn="错误码" format="X" :catch="catchError('%s')">
<options>
<option cn="无错误">
<hex>00</hex>
</option>
<option cn="无效的哈希标识">
<hex>05</hex>
</option>
<option cn="输入数据有误">
<hex>15</hex>
</option>
<option cn="DSP:错误,报告给管理员">
<hex>47</hex>
</option>
<option cn="数据长度错误">
<hex>80</hex>
</option>
</options>
</error>
<random maxLen="255" :len="getRandomSize()" cn="产生的随机数"></random>
</data>
</res>
<script>function getRandomSize(){
var data = $packet.data;
return data.nRandomSize;
}
</script>
</packet>