修改bug
This commit is contained in:
@@ -508,7 +508,7 @@ namespace BingoBrain
|
||||
|
||||
ui.text_number0.text = SaveData.GetSaveobject().ch_people.ToString();
|
||||
ui.text_number1.text = SaveData.GetSaveobject().ch_people_1.ToString();
|
||||
ui.text_number2.text = GameHelper.Get102Str((decimal)SaveData.GetSaveobject().ch_people_2);
|
||||
ui.text_number2.text = (GameHelper.isRDExchangeMode() ? "<img src='ui://pmf3wbji112epi7'/>" : "") + GameHelper.Get102Str_new((decimal)SaveData.GetSaveobject().ch_people_2);
|
||||
ui.text_chdate.text = string.Format(ui.text_chdate.text, DateTime.Now.Year + "." + DateTime.Now.Month + "." + DateTime.Now.Day);
|
||||
|
||||
}
|
||||
@@ -626,6 +626,7 @@ namespace BingoBrain
|
||||
}
|
||||
|
||||
ui.text_condi1.text = GameHelper.getChString(vo.item_need);
|
||||
Debug.Log(GameHelper.getChString(vo.item_need));
|
||||
ui.pb_condi1.max = vo.item_need;
|
||||
ui.text_ch_number.text = GameHelper.getChString(PreferencesMgr.Instance.Currency102);
|
||||
var curValue = Math.Min(PreferencesMgr.Instance.Currency102, vo.item_need);
|
||||
@@ -682,16 +683,19 @@ namespace BingoBrain
|
||||
ui.com_task.text_orderid.text = makeupTaskData.orderID;
|
||||
ui.com_task.text_task_title.SetVar("ad", vo.ad_need.ToString()).FlushVars();
|
||||
ui.com_task.text_ads.text = $"{makeupTaskData.videoCount}/{vo.ad_need}";
|
||||
|
||||
ui.com_task.text_payer.SetVar("amt", "$" + makeupTaskData.GetAmountStr()).FlushVars();
|
||||
|
||||
if (GameHelper.isRDExchangeMode())
|
||||
{
|
||||
ui.com_task.text_task.text = GameHelper.getDesByKey("makeup_12");
|
||||
}
|
||||
else
|
||||
{
|
||||
string str = string.Format(GameHelper.getDesByKey("makeup_12"), makeupTaskData.GetAmountStr());
|
||||
string str = string.Format(GameHelper.getDesByKey("makeup_12"), $"${makeupTaskData.amount:N}");
|
||||
ui.com_task.text_task.text = str;
|
||||
}
|
||||
Debug.Log(GameHelper.getDesByKey("makeup_12"));
|
||||
if (makeupTaskData.videoCount >= vo.ad_need)
|
||||
{
|
||||
ui.com_task.cont_process.selectedIndex = 1;
|
||||
@@ -763,9 +767,56 @@ namespace BingoBrain
|
||||
}
|
||||
else
|
||||
{
|
||||
makeupTaskData.SetStatus(MakeupTaskStatus.Level);
|
||||
makeupTaskData.ch_time = GameHelper.GetNowTime() + ConfigSystem.GetConfig<CommonModel>().BalanceExpired * 3600;
|
||||
PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
// makeupTaskData.SetStatus(MakeupTaskStatus.Level);//不要关卡条件了
|
||||
// makeupTaskData.ch_time = GameHelper.GetNowTime() + ConfigSystem.GetConfig<CommonModel>().BalanceExpired * 3600;
|
||||
// PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
// InitView();
|
||||
SaveData.GetSaveobject().chout_lv = vo.id;
|
||||
SaveData.saveDataFunc();
|
||||
GameHelper.ShowLoading(1, 2, () =>
|
||||
{
|
||||
TuSystem.Consume(vo.item, vo.item_need, isSuccess =>
|
||||
{
|
||||
makeupTaskData.SetStatus(MakeupTaskStatus.Inline);
|
||||
makeupTaskData.inlineInitNum =
|
||||
UnityEngine.Random.Range(ConfigSystem.GetConfig<CommonModel>().inlineInitNum[0],
|
||||
ConfigSystem.GetConfig<CommonModel>().inlineInitNum[1]);
|
||||
makeupTaskData.inlineNum = UnityEngine.Random.Range(
|
||||
ConfigSystem.GetConfig<CommonModel>().inlineInitNum[0],
|
||||
makeupTaskData.inlineInitNum);
|
||||
makeupTaskData.order_time = GameHelper.GetNowTime();
|
||||
PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
GameDispatcher.Instance.Dispatch(BingoInfo.Update102);
|
||||
//OnInline();
|
||||
// Debug.Log(JsonConvert.SerializeObject(vo));
|
||||
// if (vo.id == 1)
|
||||
// {
|
||||
// TrackKit.SendEvent(Property.withdraw_Event, Property.WithdrawCash, 1);
|
||||
|
||||
// }
|
||||
// else if (vo.id == 2)
|
||||
// {
|
||||
// TrackKit.SendEvent(Property.withdraw_Event, Property.WithdrawCash, 2);
|
||||
// }
|
||||
// else if (vo.id == 3)
|
||||
// {
|
||||
// TrackKit.SendEvent(Property.withdraw_Event, Property.WithdrawCash, 3);
|
||||
// }
|
||||
if (vo.id != 3)
|
||||
{
|
||||
ch_index++;
|
||||
}
|
||||
InitView();
|
||||
if (vo.id == 3)
|
||||
{
|
||||
// PlayerPrefs.SetInt("ch_lv", 2);
|
||||
SaveData.GetSaveobject().chout_lv = 2;
|
||||
SaveData.saveDataFunc();
|
||||
makeupTaskData = PreferencesMgr.Instance.MakeupTaskHistory.Last();
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
InitView();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user