bingo b面修改

This commit is contained in:
2026-05-08 11:03:44 +08:00
parent ad5920ac6a
commit 5d32fd56f4
1780 changed files with 36187 additions and 73978 deletions
+121 -29
View File
@@ -93,6 +93,7 @@ namespace BingoBrain
{
//if(Random.Range(0, 100)>ConfigSystem.GetConfig<CommonModel>().interstitialtype) return;
if (!IsGiftSwitch()) return;
MaxADKit.ShowInterstitial(key, isSuccess =>
{
if (isSuccess)
@@ -393,8 +394,8 @@ namespace BingoBrain
public static bool IsGiftSwitch()
{
// return false;
// return true;
// return false;
return true; //zhushi
// Debug.Log(GetLoginModel().is_magic);
return GetLoginModel().is_magic;
}
@@ -1068,7 +1069,7 @@ namespace BingoBrain
public static int GetLevel()
{
//return 30;
return 30; //zhushi
return PlayerPrefs.GetInt("_level", 1);
}
@@ -1186,16 +1187,16 @@ namespace BingoBrain
{
var currentRedeemLevel = 1;
for (var i = 0; i < PreferencesMgr.Instance.MakeupTaskHistory.Count; i++)
{
var task = PreferencesMgr.Instance.MakeupTaskHistory[i];
// for (var i = 0; i < PreferencesMgr.Instance.MakeupTaskHistory.Count; i++)
// {
// var task = PreferencesMgr.Instance.MakeupTaskHistory[i];
if (task.status == MakeupTaskStatus.Inline)
{
currentRedeemLevel++;
// // if (task.status == MakeupTaskStatus.Inline)
// // {
// // currentRedeemLevel++;
}
}
// // }
// }
// Debug.Log($"GetRewardValue=====================currentRedeemLevel {currentRedeemLevel} \n type: {type}");
@@ -1408,23 +1409,23 @@ namespace BingoBrain
var avatarId = PreferencesMgr.Instance.PlayerAvatarId;
EyesHarmony.SetAvatarToLoader(avatarId, gLoader);
}
public static bool needShowLevelstate(int id = -1)
{
// public static bool needShowLevelstate(int id = -1)
// {
var makeupTaskData = PreferencesMgr.Instance.MakeupTaskHistory.Last();
Debug.Log(makeupTaskData.tableId);
var vo = ConfigSystem.GetConfig<MakeupModel>().GetData(makeupTaskData.tableId);
Debug.Log(vo);
int lv = vo.id;
int a = PlayerPrefs.GetInt("cash_lv", 0);
if (id != -1) lv = id + 1;
if (a < lv)
{
return true;
}
// var makeupTaskData = PreferencesMgr.Instance.MakeupTaskHistory.Last();
// Debug.Log(makeupTaskData.tableId);
// var vo = ConfigSystem.GetConfig<MakeupModel>().GetData(makeupTaskData.tableId);
// Debug.Log(vo);
// int lv = vo.id;
// int a = PlayerPrefs.GetInt("cash_lv", 0);
// if (id != -1) lv = id + 1;
// if (a < lv)
// {
// return true;
// }
return false;
}
// return false;
// }
public static bool checkGoldNumber(int target)
{
return PreferencesMgr.Instance.Currency101 >= target ? true : false;
@@ -1467,10 +1468,10 @@ namespace BingoBrain
type = type
};
NetworkKit.PostWithHeader<RespAdEventData>("event/adWatchOver", respData, (isSuccess, obj) =>
{
// NetworkKit.PostWithHeader<RespAdEventData>("event/adWatchOver", respData, (isSuccess, obj) =>
// {
});
// });zhushi
}
/// <summary>
@@ -1631,6 +1632,97 @@ namespace BingoBrain
return oldDate > yesterday;
}
public static bool isRDExchangeMode()
{
return SaveData.GetSaveobject().ExchangeModeToggle == 1;
}
public static string getDesByKey(string key)
{
Debug.Log(key);
Debug.Log(JsonConvert.SerializeObject(ConfigSystem.GetConfig<ExchangeDesModel>().dataList));
if (isRDExchangeMode())
{
string str = ConfigSystem.GetConfig<ExchangeDesModel>().dataList.FirstOrDefault(data => data.des_key == key)?.Mode_1 ?? "";
if (str != "")
{
str = str.Replace("<img1>", "<img src='ui://jq2t9glpqbo98'/>")
.Replace("<img2>", "<img src='ui://jq2t9glpt9w7c3'/>");
}
return str;
}
else
{
return ConfigSystem.GetConfig<ExchangeDesModel>().dataList.FirstOrDefault(data => data.des_key == key)?.Mode_0 ?? "";
}
}
public static string getChString(decimal ch)
{
if (GameHelper.isRDExchangeMode())
{
string str = "<img src='ui://jq2t9glpqbo98'/>";
return str + $" {ch:N0}";
}
else
{
return $"${ch:N}";
}
}
public static string GenerateUniqueKey()
{
const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
string key;
do
{
StringBuilder sb = new StringBuilder();
sb.Append(GenerateRandomString(chars, 4));
sb.Append("-");
sb.Append(GenerateRandomString(chars, 6));
sb.Append("-");
sb.Append(GenerateRandomString(chars, 4));
key = sb.ToString();
} while (generatedKeys.Contains(key)); // 如果重复就重新生成
generatedKeys.Add(key); // 添加到集合中
return key;
}
static string GenerateRandomString(string charSet, int length)
{
StringBuilder sb = new StringBuilder();
System.Random random = new System.Random();
for (int i = 0; i < length; i++)
{
int index = random.Next(charSet.Length);
sb.Append(charSet[index]);
}
return sb.ToString();
}
private static HashSet<string> generatedKeys = new HashSet<string>();
public static string getPrice(decimal ch)
{
return $"${ch:N}";
}
public static string GetPriceInt(decimal ch)
{
return $"${ch:N0}";
}
public static void CopyText(string text)
{
#if UNITY_EDITOR_WIN || UNITY_EDITOR_OSX || UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_STANDALONE_LINUX
GUIUtility.systemCopyBuffer = text;
#elif UNITY_ANDROID
// CopyToClipboardAndroid(text);
#elif UNITY_IOS
BrigdeIOS.copyText(text);
#else
Debug.LogWarning("当前平台不支持复制到剪贴板功能");
#endif
GameHelper.ShowTips("Copy Succeed");
}
}
}