修改bug
This commit is contained in:
@@ -134,26 +134,9 @@ namespace BingoBrain
|
||||
|
||||
Debug.Log(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();
|
||||
// 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.SetDarkThough(true);
|
||||
SdkManager.Instance.RefreshUrl();
|
||||
SdkManager.Instance.ShowH5View(false);
|
||||
|
||||
}
|
||||
SdkManager.Instance.ShowH5View(false);
|
||||
}
|
||||
public int GetRegisteredCalendarDaysByUTC(long regTimeTimestamp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user