fix:1、添加多语言的json文件,修复bug

This commit is contained in:
2026-07-13 11:09:10 +08:00
parent f1e05d9547
commit 6b2fb1b091
10 changed files with 1058 additions and 888 deletions
@@ -39,7 +39,6 @@ namespace RedHotRoast
protected override void OnClose()
{
SaveData.SaveDataFunc();
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, true);
@@ -90,8 +89,8 @@ namespace RedHotRoast
{
_mLastState = DataMgr.PettyState.Value;
// Debug.Log($"PettyState============: {DataMgr.PettyState.Value}");
var num = ConfigSystem.GetCommonConf().SmallReward;
ui.com_get_panel.text_reward.text = $"{GameHelper.Get102Str(num)} USD";
var num = GameHelper.GetCommonModel().SmallReward;
ui.com_get_panel.text_reward.text = $"{GameHelper.GetExchangeRateVo().Payicon}{GameHelper.Get102Str(num)}";
ui.com_get_panel.btn_get.SetClick(GotoEnterAccount);
@@ -179,27 +178,27 @@ namespace RedHotRoast
var account = ui.com_account.com_email.enter_email.text.Replace(" ", "");
if (account == "")
{
GameHelper.ShowTips("Please enter the correct account information", true);
GameHelper.ShowTips("empty_account", true);
return;
}
if (!GameHelper.CheckAccountValidly(account))
{
GameHelper.ShowTips("Please enter the correct account information", true);
GameHelper.ShowTips("empty_account", true);
return;
}
var fname = ui.com_account.com_first_name.enter_first_name.text.Replace(" ", "");
if (!GameHelper.CheckNameValidly(fname))
{
GameHelper.ShowTips("Please enter the correct account information", true);
GameHelper.ShowTips("empty_account", true);
return;
}
var lname = ui.com_account.com_last_name.enter_last_name.text.Replace(" ", "");
if (!GameHelper.CheckNameValidly(lname) && !AppConst.isPt())
{
GameHelper.ShowTips("Please enter the correct account information", true);
GameHelper.ShowTips("empty_account", true);
return;
}
@@ -238,7 +237,7 @@ namespace RedHotRoast
}
else
{
GameHelper.ShowTips("Failed to save information., please try again");
GameHelper.ShowTips("failed_save", true);
ui.com_second_confirm.btn_confirm.enabled = true;
}
});
@@ -253,13 +252,14 @@ namespace RedHotRoast
var pettyAmount = DataMgr.PettyAmount.Value;
if (pettyAmount != 0)
{
ui.com_detail.text_amount.SetVar("num", GameHelper.Get102Str(pettyAmount)).FlushVars();
ui.com_detail.text_amount.SetVar("num", $" {GameHelper.GetExchangeRateVo().Payicon}{GameHelper.Get102Str(pettyAmount)}").FlushVars();
}
else
{
var num = GameHelper.GetCommonModel().SmallReward;
ui.com_detail.text_amount.SetVar("num", GameHelper.Get102Str(num)).FlushVars();
ui.com_detail.text_amount.SetVar("num", $" {GameHelper.GetExchangeRateVo().Payicon}{GameHelper.Get102Str(num)}").FlushVars();
DataMgr.PettyAmount.Value = num;
}
var pettyDateTime = DataMgr.PettyDateTime.Value;
@@ -299,7 +299,7 @@ namespace RedHotRoast
}
else
{
var day = ConfigSystem.GetCommonConf().ProcessingTime;
var day = GameHelper.GetCommonModel().ProcessingTime;
ui.com_detail.text_limit.SetVar("day", day.ToString()).FlushVars();
DataMgr.PettyDataLimit.Value = day;
}