|
|
|
@@ -105,6 +105,10 @@ public class KwBoxV1Controller extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
private boolean checkSign(KwBox kwBox, Map<String,Object> paramMap, String sign) { |
|
|
|
|
|
|
|
if (sign == null) |
|
|
|
return false; |
|
|
|
|
|
|
|
HmacUtils hmacUtils = new HmacUtils(HmacAlgorithms.HMAC_SHA_1, kwBox.getComKey()); |
|
|
|
String content = JSONObject.toJSON(paramMap).toString(); |
|
|
|
String signCom = hmacUtils.hmacHex(content); |
|
|
|
|