fix:1、添加H5
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using DontConfuse;
|
||||
using SGModule.NetKit;
|
||||
|
||||
namespace RedHotRoast
|
||||
@@ -60,6 +61,20 @@ namespace RedHotRoast
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.PayloadingUI_Close);
|
||||
MaxPayManager.Instance.PaySuccess();
|
||||
}
|
||||
|
||||
var last_time = PlayerPrefs.GetInt("Dayreftimes", 0);
|
||||
DateTime newDate = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
|
||||
newDate = newDate.AddSeconds(GameHelper.GetNowTime(true));
|
||||
// Debug.Log($"barry newdate==== {newDate}");
|
||||
var newDays = newDate.Day;
|
||||
if (last_time != newDays)
|
||||
{
|
||||
var configs = GameHelper.GetCommonModel();
|
||||
// Debug.Log($"barry hall-----{configs != null}");
|
||||
if (configs != null) {
|
||||
WebviewManager.Instance.RefreshUrl();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
private void OnGameStart(object obj)
|
||||
|
||||
Reference in New Issue
Block a user