fix:1、添加H5
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using SGModule.Common.Helper;
|
||||
using DontConfuse;
|
||||
using SGModule.Common.Helper;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace SGModule.NetKit {
|
||||
@@ -113,6 +114,19 @@ namespace SGModule.NetKit {
|
||||
onCompleted?.Invoke(response.IsSuccess, response.Data);
|
||||
});
|
||||
}
|
||||
|
||||
public static void SetClickAdEvent<T>(string link, string type, UnityAction<bool, T> onCompleted = null)
|
||||
{
|
||||
var info = new H5sendClass
|
||||
{
|
||||
link = link,
|
||||
type = type
|
||||
};
|
||||
NetKit.Instance.Post<T>("event/h5Clicks", info,
|
||||
response => {
|
||||
onCompleted?.Invoke(response.IsSuccess, response.Data);
|
||||
});
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user