Sfoglia il codice sorgente

ALL改为all

tags/v1.0.0^2
林万龙 3 anni fa
parent
commit
47857467fc
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +3
    -3
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java
  2. +1
    -1
      src/main/java/com/telpo/dipperposition/service/impl/DipperAstTimeAsyncTaskServiceImpl.java

+ 3
- 3
src/main/java/com/telpo/dipperposition/service/impl/DipperAstPosAsyncTaskServiceImpl.java Vedi File

@@ -212,8 +212,8 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS
// astPosCmd 组装
String astPosCmd = "233E0401";
astPosCmd += "1000";
astPosCmd += HexConvert.hexStringToBytes(HexConvert.encodeHEX(lanLongValue).toUpperCase());
astPosCmd += HexConvert.hexStringToBytes(HexConvert.encodeHEX(altLongValue).toUpperCase());
astPosCmd += HexConvert.encodeHEX(lanLongValue).toUpperCase();
astPosCmd += HexConvert.encodeHEX(altLongValue).toUpperCase();
astPosCmd += "70170000";
astPosCmd += "A0860100";

@@ -237,7 +237,7 @@ public class DipperAstPosAsyncTaskServiceImpl implements IDipperAstPosAsyncTaskS
astPosCmdBuf.append(s + " ");
}

return astPosCmdBuf.toString() + checkSum.substring(0,1) + " " + checkSum.substring(2,3);
return astPosCmdBuf.toString() + checkSum.substring(0,2) + " " + checkSum.substring(2,4);

}
}

+ 1
- 1
src/main/java/com/telpo/dipperposition/service/impl/DipperAstTimeAsyncTaskServiceImpl.java Vedi File

@@ -104,7 +104,7 @@ public class DipperAstTimeAsyncTaskServiceImpl implements IDipperAstTimeAsyncTas
checkSum = astCheckSumBuf.toString();
log.info(checkSum);

return astTimeCmdBuf.toString() + checkSum.substring(0,1) + " " + checkSum.substring(2,3);
return astTimeCmdBuf.toString() + checkSum.substring(0,2) + " " + checkSum.substring(2,4);
//String hexIn = astTimeCmd + HexConvert.makeChecksum(astTimeCmd);
//log.info("DipperAstTimeAsyncTaskServiceImpl 返回时间:" + hexIn);



Loading…
Annulla
Salva