generated from root/miduo_server
自动封禁优化
parent
72e9440a8b
commit
751d044a06
|
|
@ -220,8 +220,9 @@ public class GameTitleController {
|
||||||
|
|
||||||
byte[] md5sum = digest.digest();
|
byte[] md5sum = digest.digest();
|
||||||
BigInteger bigInt = new BigInteger(1, md5sum);
|
BigInteger bigInt = new BigInteger(1, md5sum);
|
||||||
map.put("message","sign:"+sign+" newSign:"+String.format("%032X", bigInt));
|
String newsign = String.format("%032X", bigInt).toLowerCase();
|
||||||
return String.format("%032X", bigInt).equalsIgnoreCase(sign); // MD5前面会补零
|
map.put("message","sign:"+sign+" newSign:"+newsign);
|
||||||
|
return newsign.equalsIgnoreCase(sign); // MD5前面会补零
|
||||||
|
|
||||||
} catch (NoSuchAlgorithmException | UnsupportedEncodingException e)
|
} catch (NoSuchAlgorithmException | UnsupportedEncodingException e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue