h5sdk提交
This commit is contained in:
@@ -54,21 +54,21 @@ namespace BingoBrain
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Log("????????????????????????3");
|
||||
Debug.Log("????????????????????????3");
|
||||
var lastId = -1;
|
||||
|
||||
// var isRepeat = PreferencesMgr.Instance.MakeupTaskHistory.Count >= makeupVOModel.dataList.Count;
|
||||
// if (PreferencesMgr.Instance.MakeupTaskHistory.Count > 0)
|
||||
// {
|
||||
// var makeupTaskData = PreferencesMgr.Instance.MakeupTaskHistory.Last();
|
||||
var isRepeat = PreferencesMgr.Instance.MakeupTaskHistory.Count >= makeupVOModel.dataList.Count;
|
||||
if (PreferencesMgr.Instance.MakeupTaskHistory.Count > 0)
|
||||
{
|
||||
var makeupTaskData = PreferencesMgr.Instance.MakeupTaskHistory.Last();
|
||||
|
||||
// if (makeupTaskData.status != MakeupTaskStatus.Inline)
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
if (makeupTaskData.status != MakeupTaskStatus.Inline)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// lastId = makeupTaskData.tableId;
|
||||
// }
|
||||
lastId = makeupTaskData.tableId;
|
||||
}
|
||||
|
||||
|
||||
if (lastId == makeupVOModel.dataList.Last().id)
|
||||
@@ -76,133 +76,137 @@ Debug.Log("????????????????????????3");
|
||||
lastId = -1;
|
||||
}
|
||||
|
||||
// foreach (var makeupVo in makeupVOModel.dataList)
|
||||
// {
|
||||
// if (makeupVo.id > lastId)
|
||||
// {
|
||||
// if ((isRepeat && !makeupVo.is_onetime) || !isRepeat)
|
||||
// {
|
||||
// var makeupTaskData = new MakeupTaskData();
|
||||
// makeupTaskData.tableId = makeupVo.id;
|
||||
// makeupTaskData.id = PreferencesMgr.Instance.MakeupTaskHistory.Count + 1;
|
||||
// makeupTaskData.amountStr = $"{makeupVo.item_need}";
|
||||
// makeupTaskData.amount = makeupVo.item_need;
|
||||
// makeupTaskData.orderID = GetRandomNum(8);
|
||||
foreach (var makeupVo in makeupVOModel.dataList)
|
||||
{
|
||||
if (makeupVo.id > lastId)
|
||||
{
|
||||
if ((isRepeat && !makeupVo.is_onetime) || !isRepeat)
|
||||
{
|
||||
var makeupTaskData = new MakeupTaskData();
|
||||
makeupTaskData.tableId = makeupVo.id;
|
||||
makeupTaskData.id = PreferencesMgr.Instance.MakeupTaskHistory.Count + 1;
|
||||
makeupTaskData.amountStr = $"{makeupVo.item_need}";
|
||||
makeupTaskData.amount = makeupVo.item_need;
|
||||
makeupTaskData.orderID = GetRandomNum(8);
|
||||
|
||||
// PreferencesMgr.Instance.MakeupTaskHistory.Add(makeupTaskData);
|
||||
// makeupTaskData.SetStatus(MakeupTaskStatus.None);
|
||||
// PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
PreferencesMgr.Instance.MakeupTaskHistory.Add(makeupTaskData);
|
||||
|
||||
// PreferencesMgr.Instance.MakeupTaskH5Time = 0;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if ((GameHelper.isRDExchangeMode() && SaveData.GetSaveobject().ExchangeProcessMode == 1) || (!GameHelper.isRDExchangeMode() && SaveData.GetSaveobject().CHProcessMode == 1)) makeupTaskData.SetStatus(MakeupTaskStatus.Level);
|
||||
else makeupTaskData.SetStatus(MakeupTaskStatus.None);
|
||||
PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
|
||||
PreferencesMgr.Instance.MakeupTaskH5Time = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void CheckMakeupTaskData()
|
||||
{
|
||||
// Debug.Log("????????????????????????1");
|
||||
// if (!GameHelper.IsGiftSwitch())
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
Debug.Log("????????????????????????1");
|
||||
if (!GameHelper.IsGiftSwitch())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// if (PreferencesMgr.Instance.MakeupTaskHistory.Count == 0)
|
||||
// {
|
||||
// AddMakeupTaskData();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Debug.Log("????????????????????????2");
|
||||
// var common = ConfigSystem.GetConfig<CommonModel>();
|
||||
// var userId = GameHelper.GetLoginModel().uid;
|
||||
// foreach (var makeuptaskData in PreferencesMgr.Instance.MakeupTaskHistory)
|
||||
// {
|
||||
// if (makeuptaskData.status == MakeupTaskStatus.Inline
|
||||
// && makeuptaskData.inlineNum > common.inlineMin)
|
||||
// {
|
||||
// var redeemVOModel = ConfigSystem.GetConfig<MakeupModel>().dataList
|
||||
// .FirstOrDefault(redeem => redeem.id == makeuptaskData.tableId);
|
||||
if (PreferencesMgr.Instance.MakeupTaskHistory.Count == 0)
|
||||
{
|
||||
// AddMakeupTaskData();
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("????????????????????????2");
|
||||
var common = ConfigSystem.GetConfig<CommonModel>();
|
||||
var userId = GameHelper.GetLoginModel().uid;
|
||||
foreach (var makeuptaskData in PreferencesMgr.Instance.MakeupTaskHistory)
|
||||
{
|
||||
if (makeuptaskData.status == MakeupTaskStatus.Inline
|
||||
&& makeuptaskData.inlineNum > common.inlineMin)
|
||||
{
|
||||
var redeemVOModel = ConfigSystem.GetConfig<MakeupModel>().dataList
|
||||
.FirstOrDefault(redeem => redeem.id == makeuptaskData.tableId);
|
||||
|
||||
// var days = PlayerPrefs.GetInt($"days_{userId}_{makeuptaskData.tableId}", 0);
|
||||
// Debug.Log("------------------" + days);
|
||||
// Debug.Log("------------------" + DateTime.Today.Day);
|
||||
// if (days == DateTime.Today.Day)
|
||||
// {
|
||||
// continue;
|
||||
// }
|
||||
var days = PlayerPrefs.GetInt($"days_{userId}_{makeuptaskData.tableId}", 0);
|
||||
Debug.Log("------------------" + days);
|
||||
Debug.Log("------------------" + DateTime.Today.Day);
|
||||
if (days == DateTime.Today.Day)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// PlayerPrefs.SetInt($"days_{userId}_{makeuptaskData.tableId}", DateTime.Today.Day);
|
||||
// var loginNum = UnityEngine.Random.Range(common.inlineLoginDown[0],
|
||||
// common.inlineLoginDown[1]);
|
||||
// makeuptaskData.loginSpeedNum += loginNum;
|
||||
// //如果登录减少人数大于配置的阈值,则不能减少排名了
|
||||
// Debug.Log($"登录累计增加的排名为:{makeuptaskData.loginSpeedNum} 阈值为:{redeemVOModel.Login_Limit_times}");
|
||||
// if (makeuptaskData.loginSpeedNum > redeemVOModel.Login_Limit_times)
|
||||
// {
|
||||
// makeuptaskData.loginSpeedNum = redeemVOModel.Login_Limit_times;
|
||||
// continue;
|
||||
// }
|
||||
PlayerPrefs.SetInt($"days_{userId}_{makeuptaskData.tableId}", DateTime.Today.Day);
|
||||
var loginNum = UnityEngine.Random.Range(common.inlineLoginDown[0],
|
||||
common.inlineLoginDown[1]);
|
||||
|
||||
// Debug.Log($"订单为: {makeuptaskData.tableId} 通过登录减少的排名为:{loginNum}");
|
||||
// makeuptaskData.inlineNum -= loginNum;
|
||||
// if (makeuptaskData.inlineNum < common.inlineMin)
|
||||
// {
|
||||
// makeuptaskData.inlineNum = common.inlineMin;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//如果登录减少人数大于配置的阈值,则不能减少排名了
|
||||
Debug.Log($"登录累计增加的排名为:{makeuptaskData.loginSpeedNum} 阈值为:{redeemVOModel.Login_Limit_times}");
|
||||
if (makeuptaskData.loginSpeedNum > redeemVOModel.Login_Limit_times)
|
||||
{
|
||||
makeuptaskData.loginSpeedNum = redeemVOModel.Login_Limit_times;
|
||||
continue;
|
||||
}
|
||||
if (makeuptaskData.loginSpeedNum + loginNum > redeemVOModel.Login_Limit_times) loginNum = redeemVOModel.Login_Limit_times - makeuptaskData.loginSpeedNum;
|
||||
makeuptaskData.loginSpeedNum += loginNum;
|
||||
Debug.Log($"订单为: {makeuptaskData.tableId} 通过登录减少的排名为:{loginNum}");
|
||||
makeuptaskData.inlineNum -= loginNum;
|
||||
if (makeuptaskData.inlineNum < common.inlineMin)
|
||||
{
|
||||
makeuptaskData.inlineNum = common.inlineMin;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
// }
|
||||
// if (SaveData.GetSaveobject().saveingpot_history.Count == 0)
|
||||
// {
|
||||
// // Debug.Log("tianjialishiiiiiiiiiiiiii");
|
||||
// // AddMakeupTaskData();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// var common = ConfigSystem.GetConfig<CommonModel>();
|
||||
// foreach (var makeuptaskData in SaveData.GetSaveobject().saveingpot_history)
|
||||
// {
|
||||
// if (makeuptaskData.status == SaveingPotTaskStatus.Inline
|
||||
// && makeuptaskData.inlineNum > common.inlineMin)
|
||||
// {
|
||||
PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
}
|
||||
if (SaveData.GetSaveobject().saveingpot_history.Count == 0)
|
||||
{
|
||||
// Debug.Log("tianjialishiiiiiiiiiiiiii");
|
||||
// AddMakeupTaskData();
|
||||
}
|
||||
else
|
||||
{
|
||||
var common = ConfigSystem.GetConfig<CommonModel>();
|
||||
foreach (var makeuptaskData in SaveData.GetSaveobject().saveingpot_history)
|
||||
{
|
||||
if (makeuptaskData.status == SaveingPotTaskStatus.Inline
|
||||
&& makeuptaskData.inlineNum > common.inlineMin)
|
||||
{
|
||||
|
||||
|
||||
|
||||
// var redeemVOModel = ConfigSystem.GetConfig<MakeupModel_2>().dataList
|
||||
// .FirstOrDefault(redeem => redeem.id == makeuptaskData.tableId);
|
||||
var redeemVOModel = ConfigSystem.GetConfig<MakeupModel_2>().dataList
|
||||
.FirstOrDefault(redeem => redeem.id == makeuptaskData.tableId);
|
||||
|
||||
// var days = PlayerPrefs.GetInt($"days__{makeuptaskData.tableId}_pot", 0);
|
||||
// if (days == DateTime.Today.Day)
|
||||
// {
|
||||
// continue;
|
||||
// }
|
||||
var days = PlayerPrefs.GetInt($"days__{makeuptaskData.tableId}_pot", 0);
|
||||
if (days == DateTime.Today.Day)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// PlayerPrefs.SetInt($"days__{makeuptaskData.tableId}_pot", DateTime.Today.Day);
|
||||
// var loginNum = UnityEngine.Random.Range(common.inlineLoginDown[0],
|
||||
// common.inlineLoginDown[1]);
|
||||
// makeuptaskData.loginSpeedNum += loginNum;
|
||||
// //如果登录减少人数大于配置的阈值,则不能减少排名了
|
||||
// // Debug.Log($"登录累计增加的排名为:{makeuptaskData.loginSpeedNum} 阈值为:{redeemVOModel.Login_Limit_times}");
|
||||
// if (makeuptaskData.loginSpeedNum > redeemVOModel.Login_Limit_times)
|
||||
// {
|
||||
// makeuptaskData.loginSpeedNum = redeemVOModel.Login_Limit_times;
|
||||
// continue;
|
||||
// }
|
||||
PlayerPrefs.SetInt($"days__{makeuptaskData.tableId}_pot", DateTime.Today.Day);
|
||||
var loginNum = UnityEngine.Random.Range(common.inlineLoginDown[0],
|
||||
common.inlineLoginDown[1]);
|
||||
|
||||
// //Debug.Log($"订单为: {makeuptaskData.tableId} 通过登录减少的排名为:{loginNum}");
|
||||
// makeuptaskData.inlineNum -= loginNum;
|
||||
// if (makeuptaskData.inlineNum < common.inlineMin)
|
||||
// {
|
||||
// makeuptaskData.inlineNum = common.inlineMin;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// SaveData.saveDataFunc();
|
||||
//如果登录减少人数大于配置的阈值,则不能减少排名了
|
||||
// Debug.Log($"登录累计增加的排名为:{makeuptaskData.loginSpeedNum} 阈值为:{redeemVOModel.Login_Limit_times}");
|
||||
if (makeuptaskData.loginSpeedNum > redeemVOModel.Login_Limit_times)
|
||||
{
|
||||
makeuptaskData.loginSpeedNum = redeemVOModel.Login_Limit_times;
|
||||
continue;
|
||||
}
|
||||
if (makeuptaskData.loginSpeedNum + loginNum > redeemVOModel.Login_Limit_times) loginNum = redeemVOModel.Login_Limit_times - makeuptaskData.loginSpeedNum;
|
||||
makeuptaskData.loginSpeedNum += loginNum;
|
||||
//Debug.Log($"订单为: {makeuptaskData.tableId} 通过登录减少的排名为:{loginNum}");
|
||||
makeuptaskData.inlineNum -= loginNum;
|
||||
if (makeuptaskData.inlineNum < common.inlineMin)
|
||||
{
|
||||
makeuptaskData.inlineNum = common.inlineMin;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
SaveData.saveDataFunc();
|
||||
}
|
||||
public static string GetRandomNum(int count)
|
||||
{
|
||||
@@ -238,13 +242,12 @@ Debug.Log("????????????????????????3");
|
||||
PreferencesMgr.Instance.Currency101 = GameHelper.GetCommonModel().Initial101;
|
||||
GameDispatcher.Instance.Dispatch(BingoInfo.Update101Completed);
|
||||
}
|
||||
|
||||
if (PreferencesMgr.Instance.CardBoardSum == -1 ||
|
||||
(PreferencesMgr.Instance.CardBoardSum == 0 && PlayerPrefs.GetInt("First", 0) == 0))
|
||||
(PreferencesMgr.Instance.CardBoardSum <= 0 && PlayerPrefs.GetInt("First", 0) == 0))
|
||||
{
|
||||
PreferencesMgr.Instance.CardBoardSum = GameHelper.GetCommonModel().Fisrtcard[0];
|
||||
Debug.Log("777777777777777777777777777");
|
||||
//PlayerPrefs.SetInt("First", 1);
|
||||
PlayerPrefs.SetInt("First", 1);
|
||||
}
|
||||
|
||||
if (PreferencesMgr.Instance.Currency102 == -1)
|
||||
@@ -279,7 +282,7 @@ Debug.Log("????????????????????????3");
|
||||
PreferencesMgr.Instance.IsShowRewardFly105 = false;
|
||||
PreferencesMgr.Instance.IsShowRewardFly106 = false;
|
||||
|
||||
CheckCoinMakeupTaskData();
|
||||
// CheckCoinMakeupTaskData();
|
||||
CheckMakeupTaskData();
|
||||
PreferencesMgr.Instance.IsShowOpenReward = true;
|
||||
}
|
||||
@@ -339,34 +342,37 @@ Debug.Log("????????????????????????3");
|
||||
{
|
||||
PreferencesMgr.Instance.RealWatchVideo++;
|
||||
}
|
||||
// if (PreferencesMgr.Instance.MakeupTaskHistory.Count > 0)
|
||||
// {
|
||||
if (PreferencesMgr.Instance.MakeupTaskHistory.Count > 0)
|
||||
{
|
||||
|
||||
// CheckSpeedUpTaskData();
|
||||
CheckSpeedUpTaskData();
|
||||
|
||||
// var taskData = PreferencesMgr.Instance.MakeupTaskHistory.Last();
|
||||
// if (taskData.status == MakeupTaskStatus.Task)
|
||||
// {
|
||||
// var makeupVo = ConfigSystem.GetConfig<MakeupModel>().dataList.FirstOrDefault(card => card.id == taskData.tableId);
|
||||
// if (makeupVo != null && taskData.videoCount < makeupVo.ad_need)
|
||||
// {
|
||||
// taskData.videoCount++;
|
||||
// NetworkKit.BuriedPoint(BuriedPointEvent.ad_task, BuriedPointEvent.watch_ad_number, 1);
|
||||
// PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
// PlayerPrefs.SetInt("finish_ad_number", 0);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (PlayerPrefs.GetInt("finish_ad_number", 0) == 0)
|
||||
// {
|
||||
// NetworkKit.BuriedPoint(BuriedPointEvent.ad_task, BuriedPointEvent.finish_ad_number, 1);
|
||||
// PlayerPrefs.SetInt("finish_ad_number", 1);
|
||||
// }
|
||||
foreach (var taskData in PreferencesMgr.Instance.MakeupTaskHistory)
|
||||
{
|
||||
if (taskData.status == MakeupTaskStatus.Task)
|
||||
{
|
||||
var makeupVo = ConfigSystem.GetConfig<MakeupModel>().dataList.FirstOrDefault(card => card.id == taskData.tableId);
|
||||
if (makeupVo != null && taskData.videoCount < makeupVo.ad_need)
|
||||
{
|
||||
taskData.videoCount++;
|
||||
NetworkKit.BuriedPoint(BuriedPointEvent.ad_task, BuriedPointEvent.watch_ad_number, 1);
|
||||
PreferencesMgr.Instance.SaveMakeupTaskHistory();
|
||||
PlayerPrefs.SetInt("finish_ad_number", 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (PlayerPrefs.GetInt("finish_ad_number", 0) == 0)
|
||||
{
|
||||
NetworkKit.BuriedPoint(BuriedPointEvent.ad_task, BuriedPointEvent.finish_ad_number, 1);
|
||||
PlayerPrefs.SetInt("finish_ad_number", 1);
|
||||
}
|
||||
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
// var taskData = PreferencesMgr.Instance.MakeupTaskHistory.Last();
|
||||
|
||||
// }
|
||||
}
|
||||
// if (PreferencesMgr.Instance.CoinMakeupTaskHistory.Count > 0)
|
||||
// {
|
||||
// var taskData = PreferencesMgr.Instance.CoinMakeupTaskHistory.Last();
|
||||
@@ -381,17 +387,17 @@ Debug.Log("????????????????????????3");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if (SaveData.GetSaveobject().saveingpot_history.Count > 0)
|
||||
if (SaveData.GetSaveobject().saveingpot_history.Count > 0)
|
||||
{
|
||||
SaveingPotHelper.TestingClearTime();
|
||||
CheckSpeedUpTaskData(2);
|
||||
SaveingPotClass taskData = SaveData.GetSaveobject().saveingpot_history.Last();
|
||||
makeup_2 makeupVo = ConfigSystem.GetConfig<MakeupModel_2>().GetData(taskData.tableId);
|
||||
SaveData.GetSaveobject().saveingpot_cash += makeupVo.ADIncrease;
|
||||
SaveData.GetSaveobject().saveingpot_ch += makeupVo.ADIncrease;
|
||||
// GameDispatcher.Instance.Dispatch(GameMsg.RefreshSaveingPot);
|
||||
if (ConfigSystem.GetConfig<CommonModel>().PiggyBankSwitch == 1 && GameHelper.IsGiftSwitch())
|
||||
{
|
||||
if ((SaveData.GetSaveobject().saveingpot_cash > taskData.amount) && (!taskData.auto_show) && !UI.Instance.IsExistUI(UIConst.H5UI))
|
||||
if ((SaveData.GetSaveobject().saveingpot_ch > taskData.amount) && (!taskData.auto_show) && !UI.Instance.IsExistUI(UIConst.H5UI))
|
||||
{
|
||||
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.SaveingPotUI_Open);
|
||||
@@ -515,37 +521,39 @@ Debug.Log("????????????????????????3");
|
||||
|
||||
var common = ConfigSystem.GetConfig<CommonModel>();
|
||||
|
||||
// if (type == 1 && PreferencesMgr.Instance.MakeupTaskHistory.Count > 0)
|
||||
// {
|
||||
// foreach (var makeuptaskData in PreferencesMgr.Instance.MakeupTaskHistory)
|
||||
// {
|
||||
// if (makeuptaskData.status == MakeupTaskStatus.Inline
|
||||
// && makeuptaskData.inlineNum > common.inlineMin)
|
||||
// {
|
||||
// var redeemVOModel = ConfigSystem.GetConfig<MakeupModel>().dataList
|
||||
// .FirstOrDefault(redeem => redeem.id == makeuptaskData.tableId);
|
||||
if (type == 1 && PreferencesMgr.Instance.MakeupTaskHistory.Count > 0)
|
||||
{
|
||||
foreach (var makeuptaskData in PreferencesMgr.Instance.MakeupTaskHistory)
|
||||
{
|
||||
if (makeuptaskData.status == MakeupTaskStatus.Inline
|
||||
&& makeuptaskData.inlineNum > common.inlineMin)
|
||||
{
|
||||
var redeemVOModel = ConfigSystem.GetConfig<MakeupModel>().dataList
|
||||
.FirstOrDefault(redeem => redeem.id == makeuptaskData.tableId);
|
||||
|
||||
// var dowmNum = redeemVOModel.AD_Down;
|
||||
// Debug.Log($"CheckSpeedUpTaskData dowmNum=== {dowmNum} makeuptaskData.WatchVideoSpeedNum ==== {makeuptaskData.WatchVideoSpeedNum}");
|
||||
var dowmNum = redeemVOModel.AD_Down;
|
||||
Debug.Log($"CheckSpeedUpTaskData dowmNum=== {dowmNum} makeuptaskData.WatchVideoSpeedNum ==== {makeuptaskData.WatchVideoSpeedNum}");
|
||||
|
||||
// makeuptaskData.WatchVideoSpeedNum += dowmNum;
|
||||
// //如果看广告的减少人数大于配置的阈值,则不能减少排名了
|
||||
// if (makeuptaskData.WatchVideoSpeedNum > redeemVOModel.AD_Limit_times)
|
||||
// {
|
||||
// makeuptaskData.WatchVideoSpeedNum = redeemVOModel.AD_Limit_times;
|
||||
// continue;
|
||||
// }
|
||||
|
||||
// Debug.Log($"订单为: {makeuptaskData.tableId} 通过看广告减少的排名为:{dowmNum}");
|
||||
// makeuptaskData.inlineNum -= dowmNum;
|
||||
// Debug.Log($"订单为: {makeuptaskData.tableId} 减少后的排名:{makeuptaskData.inlineNum}");
|
||||
// if (makeuptaskData.inlineNum < common.inlineMin)
|
||||
// {
|
||||
// makeuptaskData.inlineNum = common.inlineMin;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//如果看广告的减少人数大于配置的阈值,则不能减少排名了
|
||||
if (makeuptaskData.WatchVideoSpeedNum > redeemVOModel.AD_Limit_times)
|
||||
{
|
||||
makeuptaskData.WatchVideoSpeedNum = redeemVOModel.AD_Limit_times;
|
||||
continue;
|
||||
}
|
||||
if (makeuptaskData.WatchVideoSpeedNum + dowmNum > redeemVOModel.AD_Limit_times) dowmNum = redeemVOModel.AD_Limit_times - makeuptaskData.WatchVideoSpeedNum;
|
||||
|
||||
Debug.Log($"订单为: {makeuptaskData.tableId} 通过看广告减少的排名为:{dowmNum}");
|
||||
makeuptaskData.WatchVideoSpeedNum += dowmNum;
|
||||
makeuptaskData.inlineNum -= dowmNum;
|
||||
Debug.Log($"订单为: {makeuptaskData.tableId} 减少后的排名:{makeuptaskData.inlineNum}");
|
||||
if (makeuptaskData.inlineNum < common.inlineMin)
|
||||
{
|
||||
makeuptaskData.inlineNum = common.inlineMin;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (type == 2 && SaveData.GetSaveobject().saveingpot_history.Count > 0)
|
||||
{
|
||||
foreach (var makeuptaskData in SaveData.GetSaveobject().saveingpot_history)
|
||||
@@ -559,14 +567,15 @@ Debug.Log("????????????????????????3");
|
||||
var dowmNum = redeemVOModel.AD_Down;
|
||||
// Debug.Log($"CheckSpeedUpTaskData dowmNum=== {dowmNum} makeuptaskData.WatchVideoSpeedNum ==== {makeuptaskData.WatchVideoSpeedNum}");
|
||||
|
||||
makeuptaskData.WatchVideoSpeedNum += dowmNum;
|
||||
|
||||
//如果看广告的减少人数大于配置的阈值,则不能减少排名了
|
||||
if (makeuptaskData.WatchVideoSpeedNum > redeemVOModel.AD_Limit_times)
|
||||
{
|
||||
makeuptaskData.WatchVideoSpeedNum = redeemVOModel.AD_Limit_times;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (makeuptaskData.WatchVideoSpeedNum + dowmNum > redeemVOModel.AD_Limit_times) dowmNum = redeemVOModel.AD_Limit_times - makeuptaskData.WatchVideoSpeedNum;
|
||||
makeuptaskData.WatchVideoSpeedNum += dowmNum;
|
||||
//Debug.Log($"订单为: {makeuptaskData.tableId} 通过看广告减少的排名为:{dowmNum}");
|
||||
makeuptaskData.inlineNum -= dowmNum;
|
||||
//Debug.Log($"订单为: {makeuptaskData.tableId} 减少后的排名:{makeuptaskData.inlineNum}");
|
||||
|
||||
Reference in New Issue
Block a user