h5sdk提交
This commit is contained in:
@@ -66,12 +66,16 @@ public class SaveingPotClass
|
||||
}
|
||||
|
||||
public float cash_number = 0;
|
||||
public List<SaveingPotRdData> rdData;
|
||||
public SaveingPotRdData lastRdData;
|
||||
}
|
||||
public enum SaveingPotTaskStatus
|
||||
{
|
||||
None,
|
||||
Task,
|
||||
Inline,
|
||||
ticket,
|
||||
code,
|
||||
}
|
||||
// var makeupTaskData = new MakeupTaskData();
|
||||
// makeupTaskData.tableId = makeupVo.id;
|
||||
@@ -83,6 +87,12 @@ public enum SaveingPotTaskStatus
|
||||
// PreferencesMgr.Instance.MakeupTaskHistory.Add(makeupTaskData);
|
||||
// Debug.Log("uuuuuuuuuuuuuuuuuuuu");
|
||||
// makeupTaskData.SetStatus(MakeupTaskStatus.None);
|
||||
public class SaveingPotRdData
|
||||
{
|
||||
public int coupon_mount;
|
||||
public string code;
|
||||
public bool isClaimed;
|
||||
}
|
||||
public class SaveingPotHelper
|
||||
{
|
||||
|
||||
@@ -128,10 +138,10 @@ public class SaveingPotHelper
|
||||
Debug.Log("qinglisaveingpot");
|
||||
int index = SaveData.GetSaveobject().saveingpot_history.Count - 1;
|
||||
makeup_2 config = ConfigSystem.GetConfig<MakeupModel_2>().dataList[index];
|
||||
SaveData.GetSaveobject().saveingpot_cash = 0;
|
||||
SaveData.GetSaveobject().saveingpot_ch = 0;
|
||||
SaveData.GetSaveobject().saveingpot_history[SaveData.GetSaveobject().saveingpot_history.Count - 1].clear_time = GameHelper.GetNowTime() + config.Reset_time * 3600;
|
||||
SaveData.GetSaveobject().saveingpot_history[SaveData.GetSaveobject().saveingpot_history.Count - 1].auto_show = false;
|
||||
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
@@ -156,11 +166,11 @@ public class SaveingPotHelper
|
||||
|
||||
|
||||
|
||||
public static string getCashString(float cash)
|
||||
public static string getChString(float cash)
|
||||
{
|
||||
return $"${cash:N}";
|
||||
}
|
||||
public static string getCashNumber(float cash)
|
||||
public static string getChNumber(float cash)
|
||||
{
|
||||
return $"{cash:N}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user