【sdk】宏
parent
3559855124
commit
0d29d3e2ca
|
|
@ -6,6 +6,8 @@ using PhxhSDK;
|
|||
|
||||
public partial class SROptions
|
||||
{
|
||||
|
||||
#if SDK_TAPTAP || SDK_CRASHSIGHT
|
||||
#if UNITY_ANDROID
|
||||
[Category("Report"), DisplayName("模拟崩溃-Java")]
|
||||
public void TestCrashJava()
|
||||
|
|
@ -44,4 +46,5 @@ public partial class SROptions
|
|||
var helper = SDKManager.GetSingleton().GetSdkHelper(SDKManager.SdkName.CrashSight) as CrashSightSdkHelper;
|
||||
helper?.TestCrash();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -125,11 +125,15 @@ namespace Gameplay.Net
|
|||
|
||||
case NLDPB.LoginType.TapTap:
|
||||
{
|
||||
# if SDK_TAPTAP
|
||||
//msg.mPB.LoginDatas.Add("accessToken");
|
||||
//msg.mPB.LoginDatas.Add("macKey");
|
||||
var helper = SDKManager.Instance.GetSdkHelper(SDKManager.SdkName.TapTap) as TapTapSdkHelper;
|
||||
msg.mPB.LoginDatas.Add(helper.AccessToken);
|
||||
msg.mPB.LoginDatas.Add(helper.MacKey);
|
||||
#else
|
||||
DebugUtil.LogError("PartLogin SendLogin LoginType TapTap error : SDK_TAPTAP not defined");
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -47,9 +47,11 @@ public class UINewLoginController : UIWindow
|
|||
|
||||
private void OnExitBtnOnClick()
|
||||
{
|
||||
#if SDK_TAPTAP
|
||||
var helper = SDKManager.Instance.GetSdkHelper(SDKManager.SdkName.TapTap) as TapTapSdkHelper;
|
||||
helper.Logout();
|
||||
OnRecvNewLoginTips("已退出,请重新登录");
|
||||
#endif
|
||||
}
|
||||
private void RegisterEvent()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,15 +1,7 @@
|
|||
using Framework;
|
||||
using Gameplay.Net;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TapTap.AntiAddiction.Localization;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.UIElements;
|
||||
using Button = UnityEngine.UI.Button;
|
||||
using Image = UnityEngine.UI.Image;
|
||||
|
||||
public class UIGiftCodeAwardsController: UIWindow
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue