| | |
| | | JKMessage0101 jkMessage0101 = new JKMessage0101(); |
| | | jkMessage0101.phone = ExamPlatformData.getInstance().getPhone(); |
| | | String des = hexPwd; |
| | | int time = (int) System.currentTimeMillis(); |
| | | jkMessage0101.timestamp = time; |
| | | long time = System.currentTimeMillis()/1000; |
| | | int unsignedInt = Utils.parseUnsignedInt(String.valueOf(time),10); |
| | | MyLog.i(String.format("总秒数(long)=%d,装换成unsigned int= %d",time,unsignedInt)); |
| | | jkMessage0101.timestamp = unsignedInt; |
| | | |
| | | |
| | | byte[] miwen = Utils.encrypt(com.anyun.im_lib.util.ByteUtil.intGetBytes(time),des); |
| | | MyLog.i(PlatFormConstant.TAG,"鉴权密文="+BytesUtils.bytesToHexString(miwen)+" time="+time); |
| | | byte[] miwen = Utils.encrypt(com.anyun.im_lib.util.ByteUtil.intGetBytes(unsignedInt),des); |
| | | MyLog.i(PlatFormConstant.TAG,"鉴权密文="+BytesUtils.bytesToHexString(miwen)+" time="+unsignedInt); |
| | | jkMessage0101.des = BytesUtils.bytesToHexString(miwen); |
| | | |
| | | MessageProcessor.getInstance().sendMessage(jkMessage0101); |