fversion
This commit is contained in:
parent
9735f39664
commit
c047d03fbf
@ -22,6 +22,7 @@ import java.util.Set;
|
||||
import static com.xhpc.common.data.redis.StaticBeanUtil.REDIS;
|
||||
import static com.xhpc.common.data.redis.StaticBeanUtil.seqHex;
|
||||
import static com.xhpc.pp.config.EarlierBeanConf.getLocalIPAndPort;
|
||||
import static com.xhpc.pp.utils.HexUtils.toBytes;
|
||||
|
||||
@Lazy
|
||||
@Component("RegisterLogic")
|
||||
@ -58,6 +59,7 @@ public class RegisterLogic implements ServiceLogic {
|
||||
cachePile.put("svcSrv", localIPAndPort);
|
||||
int gunNum = Integer.parseInt(req.get("gunNum").toString());
|
||||
cachePile.put("gunNum", gunNum);
|
||||
cachePile.put("firmwareVersion", new String(toBytes(req.get("hex").toString().substring(32, 48))));
|
||||
cachePile.put("version", req.get("version").toString());
|
||||
REDIS.setCacheMap("pile:".concat(pileNo), cachePile);
|
||||
for (int gunN = 1; gunN <= gunNum; gunN++) {
|
||||
@ -94,7 +96,7 @@ public class RegisterLogic implements ServiceLogic {
|
||||
deviceMessage.setContent((String) req.get("hex"));
|
||||
deviceMessageMapper.insertByDomain(deviceMessage);
|
||||
|
||||
return new ServiceResult(HexUtils.toBytes(resultStr), resultCode);
|
||||
return new ServiceResult(toBytes(resultStr), resultCode);
|
||||
}
|
||||
|
||||
private void cachePileGunSvcSrv(String gunkey, String svcSrvKey) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user