fix:1、H5方案改为我们自己的sdk,跳转电商也是。2、同步部分ios的优化
This commit is contained in:
@@ -6,6 +6,8 @@ using FGUI.ZM_H5_15;
|
||||
using IgnoreOPS;
|
||||
using SGModule.NetKit;
|
||||
using UnityEngine;
|
||||
using UNSDK;
|
||||
|
||||
// using UNSDK;
|
||||
|
||||
namespace ChillConnect
|
||||
@@ -40,9 +42,17 @@ namespace ChillConnect
|
||||
|
||||
protected override void OnClose()
|
||||
{
|
||||
FreeWebViewManager.Instance.CloseWeb();
|
||||
ctrl.CloseSettingAlpha();
|
||||
// if (_config.normal)
|
||||
// {
|
||||
SdkConfigMgr.Instance.Close();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// FreeWebViewManager.Instance.CloseWeb();
|
||||
// }
|
||||
|
||||
|
||||
// SdkConfigMgr.Instance.Close();
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, true);
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.showBroadCast);
|
||||
@@ -59,14 +69,13 @@ namespace ChillConnect
|
||||
private SDKOpenConfig _config;
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
if (args is not SDKOpenConfig openConfig) return;
|
||||
// if (args is not SDKOpenConfig openConfig) return;
|
||||
|
||||
// _config = openConfig;
|
||||
|
||||
_config = openConfig;
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, false);
|
||||
|
||||
// Debug.Log($"H5UI OpenBefore url: {_config.url} normal: {_config.normal}");
|
||||
|
||||
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.hideBroadCast);
|
||||
|
||||
@@ -77,11 +86,20 @@ namespace ChillConnect
|
||||
});
|
||||
|
||||
InitView();
|
||||
|
||||
DOVirtual.DelayedCall(0.35f, () =>
|
||||
{
|
||||
FreeWebViewManager.Instance.OpenWeb(_config.url);
|
||||
});
|
||||
|
||||
// Debug.Log($"H5UI OpenWeb _config.normal=========: {_config.normal}");
|
||||
// if (_config.normal)
|
||||
// {
|
||||
// SdkConfigMgr.Instance.Open();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// DOVirtual.DelayedCall(0.35f, () =>
|
||||
// {
|
||||
// Debug.Log($"H5UI OpenWeb _config.url=========: {_config.url}");
|
||||
// FreeWebViewManager.Instance.OpenWeb(_config.url);
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
|
||||
Reference in New Issue
Block a user