测试接口并修改一些错误
This commit is contained in:
+7
-2
@@ -110,7 +110,12 @@
|
||||
|
||||
</res>
|
||||
<script>function Len() {
|
||||
return Util.lenChoice($final.getSection('data').getSection('keyHead').getValue() )
|
||||
if( $final.data.keyHead.eqStr("Y") || $final.data.keyHead.eqStr("T") ){
|
||||
return 48
|
||||
}else if( $final.data.keyHead.eqStr("X") || $final.data.keyHead.eqStr("U") || $final.data.keyHead.eqStr("S") ){
|
||||
return 32
|
||||
}
|
||||
return 15
|
||||
}
|
||||
|
||||
function KCVLen() {
|
||||
@@ -118,7 +123,7 @@ function KCVLen() {
|
||||
if( $final.data.keyHead.eqStr("S") ){
|
||||
return 32
|
||||
}
|
||||
return 16
|
||||
return 6
|
||||
}
|
||||
</script>
|
||||
</packet>
|
||||
+2
-2
@@ -167,7 +167,7 @@
|
||||
if( 0 == $packet.data.dataType$option ){
|
||||
return $packet.data.msg.length
|
||||
} else {
|
||||
return $packet.data.msg.length() /2
|
||||
return ($packet.data.msg.length / 2) as int
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
if ( 0 == $packet.data.mode$option ) {
|
||||
return 16;
|
||||
} else {
|
||||
return 32;
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@
|
||||
if ( 0 == $packet.data.mode$option ) {
|
||||
return 16;
|
||||
} else {
|
||||
return 32;
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user