fix
This commit is contained in:
+2
-2
@@ -2,7 +2,6 @@ package com.sunyard.ssp.modules.sysconf.cipherunit.controller;
|
||||
|
||||
import com.sun.jna.Pointer;
|
||||
import com.sun.jna.ptr.PointerByReference;
|
||||
import com.sunyard.proto.Util;
|
||||
import com.sunyard.ssp.common.Result;
|
||||
import com.sunyard.ssp.common.annotation.AuditControllerLog;
|
||||
import com.sunyard.ssp.common.exception.SspwebException;
|
||||
@@ -18,6 +17,7 @@ import com.sunyard.ssp.utils.ResultUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.codec.binary.Hex;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
@@ -97,7 +97,7 @@ public class ScCipherMachineController {
|
||||
return new ResultUtil<Object>().setErrorMsg(ret, "生成随机数失败,密码模块初始化失败");
|
||||
}
|
||||
// 返回结果
|
||||
String result = Util.bytes2HexString(nakedSign);
|
||||
String result = Hex.encodeHexString(nakedSign);
|
||||
log.info("检测功能响应结果:{}", result);
|
||||
return new ResultUtil<>().setData(result);
|
||||
} catch (SspwebException e) {
|
||||
|
||||
Reference in New Issue
Block a user