|
@@ -92,10 +92,28 @@ public class BasicLibraryController extends BaseController {
|
|
|
if (param.getBootCodeSend() < 0){
|
|
|
return R.fail("引导码发送次数参数有误");
|
|
|
}
|
|
|
+ String[] synchronizeCode = param.getSynchronizeCode().split(",");
|
|
|
+ if (synchronizeCode.length != 2){
|
|
|
+ return R.fail("同步码参数格式有误");
|
|
|
+ }
|
|
|
+ if (param.getSynchronizeCodeSend() < 0){
|
|
|
+ return R.fail("同步码发送次数参数有误");
|
|
|
+ }
|
|
|
+
|
|
|
String[] dateCode = param.getDateCode().split(",");
|
|
|
if (dateCode.length % 2 != 0){
|
|
|
return R.fail("数据码参数有误");
|
|
|
}
|
|
|
+
|
|
|
+ String[] dateBinary0 = param.getDateBinary0().split(",");
|
|
|
+ if (dateBinary0.length != 2){
|
|
|
+ return R.fail("数据码二进制0参数格式有误");
|
|
|
+ }
|
|
|
+ String[] dateBinary1 = param.getDateBinary1().split(",");
|
|
|
+ if (dateBinary1.length != 2){
|
|
|
+ return R.fail("数据码二进制1参数格式有误");
|
|
|
+ }
|
|
|
+
|
|
|
String[] overCode = param.getOverCode().split(",");
|
|
|
if (overCode.length != 2){
|
|
|
return R.fail("结束码参数有误");
|