Commit f749d4e7f7bd4e6536f3dc97d38ac5a1d4947e57

Authored by 潘钊
1 parent 3a9811a3

update...

src/main/java/com/bsth/util/HexCardTransform.java
1 package com.bsth.util; 1 package com.bsth.util;
2 2
  3 +import org.apache.commons.lang3.StringUtils;
  4 +
3 import java.math.BigInteger; 5 import java.math.BigInteger;
4 6
5 /** 7 /**
@@ -14,6 +16,8 @@ public class HexCardTransform { @@ -14,6 +16,8 @@ public class HexCardTransform {
14 * @return 16 * @return
15 */ 17 */
16 public static String hexConvert(String hexCode) { 18 public static String hexConvert(String hexCode) {
  19 + if(StringUtils.isEmpty(hexCode))
  20 + return null;
17 //16进制补满8位 21 //16进制补满8位
18 hexCode = padLeft(hexCode, 8, '0'); 22 hexCode = padLeft(hexCode, 8, '0');
19 23