/// <summary>
/// 获取TK value
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
private int getGTK(string str)
{
var hash = 5381;
for (int i = 0, len = str.Length; i < len; ++i)
{
hash += (hash << 5) + (int)str[i];
}
return hash & 0x7fffffff;
}
QQ获取TK 转换
最新推荐文章于 2024-01-01 16:50:54 发布