c#
This commit is contained in:
parent
9ec8b4b4a0
commit
e5087ad232
@ -22,13 +22,10 @@ namespace BFEditor
|
||||
window.Show();
|
||||
}
|
||||
|
||||
[MenuItem("其他工具/账号/清除数据(B5)", false, 3)]
|
||||
[MenuItem("其他工具/账号/清除数据", false, 3)]
|
||||
static public void ClearGameData()
|
||||
{
|
||||
LocalData.SetString("LAST_LOGIN_INFO", "{}");
|
||||
LocalData.SetString("SEND_QUEUE", "{}");
|
||||
LocalData.SetString("SDK_UID", "");
|
||||
LocalData.SetInt("LAST_MAIL_ID", 0);
|
||||
PlayerPrefs.DeleteAll();
|
||||
BFLog.Log("清除数据成功 success!");
|
||||
}
|
||||
|
||||
|
||||
@ -233,7 +233,7 @@ namespace BF
|
||||
return rsaKey;
|
||||
}
|
||||
|
||||
public static double GetRewardNumber(string str)
|
||||
public static long GetRewardNumber(string str)
|
||||
{
|
||||
var bytes = System.Convert.FromBase64String(str);
|
||||
var index = 0;
|
||||
@ -249,7 +249,7 @@ namespace BF
|
||||
}
|
||||
}
|
||||
var result = System.Text.Encoding.UTF8.GetString(bytes);
|
||||
return Convert.ToDouble(result);
|
||||
return Convert.ToInt64(result);
|
||||
}
|
||||
|
||||
// 从Sha1证书签名中提取keyhash给facebook等sdk用
|
||||
|
||||
@ -683,7 +683,7 @@ namespace XLua.CSObjectWrap
|
||||
string _str = LuaAPI.lua_tostring(L, 1);
|
||||
|
||||
var gen_ret = BF.Utils.GetRewardNumber( _str );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
LuaAPI.lua_pushint64(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user