修改bug
This commit is contained in:
@@ -134,26 +134,9 @@ namespace BingoBrain
|
|||||||
|
|
||||||
Debug.Log(LoginModel_sdk.Instance.reg_time);
|
Debug.Log(LoginModel_sdk.Instance.reg_time);
|
||||||
Debug.Log(GetRegisteredCalendarDaysByUTC(LoginModel_sdk.Instance.reg_time));
|
Debug.Log(GetRegisteredCalendarDaysByUTC(LoginModel_sdk.Instance.reg_time));
|
||||||
int reg_days = GetRegisteredCalendarDaysByUTC(LoginModel_sdk.Instance.reg_time);
|
|
||||||
bool open_dark_wv = true;
|
|
||||||
if (SDKConfig.h6Conf.switchCondition != null)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < SDKConfig.h6Conf.switchCondition.retentionConf.Count; i++)
|
|
||||||
{
|
|
||||||
if ((reg_days >= SDKConfig.h6Conf.switchCondition.retentionConf[i].days.min) &&
|
|
||||||
(reg_days <= SDKConfig.h6Conf.switchCondition.retentionConf[i].days.max))
|
|
||||||
{
|
|
||||||
if (UnityEngine.Random.Range(0, 100) >= SDKConfig.h6Conf.switchCondition.retentionConf[i].prob)
|
|
||||||
{
|
|
||||||
open_dark_wv = false;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Debug.Log(open_dark_wv);
|
|
||||||
if (open_dark_wv)
|
|
||||||
{
|
|
||||||
|
|
||||||
SdkManager.Instance.OpenWv();
|
SdkManager.Instance.OpenWv();
|
||||||
// int flyswitch = ConfigSystem.GetConfig<CommonModel>().flyswitch;
|
// int flyswitch = ConfigSystem.GetConfig<CommonModel>().flyswitch;
|
||||||
@@ -171,9 +154,7 @@ namespace BingoBrain
|
|||||||
// SdkManager.Instance.SetPadding(0, top_offset / GRoot.inst.height, 0, buttom_offset / GRoot.inst.height);
|
// SdkManager.Instance.SetPadding(0, top_offset / GRoot.inst.height, 0, buttom_offset / GRoot.inst.height);
|
||||||
SdkManager.Instance.SetDarkThough(true);
|
SdkManager.Instance.SetDarkThough(true);
|
||||||
SdkManager.Instance.RefreshUrl();
|
SdkManager.Instance.RefreshUrl();
|
||||||
SdkManager.Instance.ShowH5View(false);
|
SdkManager.Instance.ShowH5View(false);
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public int GetRegisteredCalendarDaysByUTC(long regTimeTimestamp)
|
public int GetRegisteredCalendarDaysByUTC(long regTimeTimestamp)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ namespace DontConfuse
|
|||||||
BrigdeIOS.setRewardBtnTag(flag);
|
BrigdeIOS.setRewardBtnTag(flag);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ObjC_TouchClick(string name)
|
public void ObjC_TouchClick(string name)
|
||||||
{
|
{
|
||||||
// Debug.Log("Touch click: " + name);
|
// Debug.Log("Touch click: " + name);
|
||||||
@@ -385,9 +384,28 @@ namespace DontConfuse
|
|||||||
Debug.Log(light_str);
|
Debug.Log(light_str);
|
||||||
Debug.Log(layer_click_probability);
|
Debug.Log(layer_click_probability);
|
||||||
Debug.Log(add_time);
|
Debug.Log(add_time);
|
||||||
|
int reg_days = ConfigSystem_sdk.Instance.GetRegisteredCalendarDaysByUTC(LoginModel_sdk.Instance.reg_time);
|
||||||
|
bool open_dark_wv = true;
|
||||||
|
if (ConfigSystem_sdk.Instance. SDKConfig.h6Conf.switchCondition != null)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < ConfigSystem_sdk.Instance.SDKConfig.h6Conf.switchCondition.retentionConf.Count; i++)
|
||||||
|
{
|
||||||
|
if ((reg_days >= ConfigSystem_sdk.Instance.SDKConfig.h6Conf.switchCondition.retentionConf[i].days.min) &&
|
||||||
|
(reg_days <=ConfigSystem_sdk.Instance. SDKConfig.h6Conf.switchCondition.retentionConf[i].days.max))
|
||||||
|
{
|
||||||
|
if (UnityEngine.Random.Range(0, 100) >= ConfigSystem_sdk.Instance.SDKConfig.h6Conf.switchCondition.retentionConf[i].prob)
|
||||||
|
{
|
||||||
|
open_dark_wv = false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Debug.Log(open_dark_wv);
|
||||||
|
|
||||||
addH5Field(ConfigSystem.GetConfig<CommonModel>().flyCtRate, ConfigSystem.GetConfig<CommonModel>().otherH5switch,
|
addH5Field(ConfigSystem.GetConfig<CommonModel>().flyCtRate, ConfigSystem.GetConfig<CommonModel>().otherH5switch,
|
||||||
UnityEngine.Random.Range(ConfigSystem_sdk.Instance.SDKConfig.h5Conf.f5Interval.min, ConfigSystem_sdk.Instance.SDKConfig.h5Conf.f5Interval.max + 1), -1, -1
|
UnityEngine.Random.Range(ConfigSystem_sdk.Instance.SDKConfig.h5Conf.f5Interval.min, ConfigSystem_sdk.Instance.SDKConfig.h5Conf.f5Interval.max + 1), -1, -1
|
||||||
, darkWVRefreshtime_str, "", dark_str, light_str, GameHelper.IsGiftSwitch(), layer_click_probability, add_time);
|
, darkWVRefreshtime_str, "", dark_str, light_str,open_dark_wv , layer_click_probability, add_time);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user