fix 是否解锁good提示

This commit is contained in:
zhangjie0072 2022-08-09 11:21:40 +08:00
parent 850af84078
commit 1af6269aef
2 changed files with 5 additions and 4 deletions

View File

@ -180,7 +180,7 @@ public class PanelGame : BasePanel
private void OnClickEndings() private void OnClickEndings()
{ {
if (!PlayerData.Instance.LevelReachGoodEnding(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel-1])) if (!PlayerData.Instance.HasWatchedEndingAdTip(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel-1], 0))
{ {
TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_GetTips, (_isReward) => TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_GetTips, (_isReward) =>
{ {

View File

@ -61,9 +61,10 @@ public class PanelResult : BasePanel
mBtnEndings.DelClick = OnClickShowEndingsDirectly; mBtnEndings.DelClick = OnClickShowEndingsDirectly;
string platform = StarkSDK.API.GetSystemInfo().platform;
#if H5_DY #if H5_DY
string platform = StarkSDK.API.GetSystemInfo().platform;
if (platform != null && platform.ToLower().Contains("ios")) if (platform != null && platform.ToLower().Contains("ios"))
{ {
mBtnSuccShare.gameObject.SetActive(false); mBtnSuccShare.gameObject.SetActive(false);
@ -75,7 +76,7 @@ public class PanelResult : BasePanel
mBtnShareResult.gameObject.SetActive(false); mBtnShareResult.gameObject.SetActive(false);
#else #else
mBtnSuccShare.gameObject.SetActive(false); mBtnSuccShare.gameObject.SetActive(false);
mBtnShareResult.gameObject.SetActive(true); mBtnShareResult.gameObject.SetActive(true);
#endif #endif
} }
@ -193,7 +194,7 @@ public class PanelResult : BasePanel
private void OnClickEndings() private void OnClickEndings()
{ {
if (!PlayerData.Instance.LevelReachGoodEnding(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel - 1])) if (!PlayerData.Instance.HasWatchedEndingAdTip(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel - 1], 0))
{ {
TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_GetTips, (_isReward) => TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_GetTips, (_isReward) =>
{ {