修改bilisdk 接口

main
yurui 2024-12-23 16:49:42 +08:00
parent 83ecb2d114
commit 8ac61433f7
4 changed files with 4 additions and 44 deletions

View File

@ -1153,16 +1153,12 @@ public class LoginController : Singlenton<LoginController>
//autoLogin = false;//登录成功后关闭自动登录
isLogin = true;
#if SDK_BILIBILI
BilibiliSdkHelper helper = SDKManager.Instance.GetSdkHelper(SDKManager.SdkName.Bilibili) as BilibiliSdkHelper;
#endif
//是否为新注册用户
int completeStepId = (int)Actor.Instance.Logic.GetCount((uint)LogicID.NewGuideProgress);
if (completeStepId == 0)
{
#if SDK_BILIBILI
helper.CreateRole(Actor.Instance.Base.Nickname, Actor.Instance.Base.AccountID); // 创建角色
GSCSdkInterface.createRole(Actor.Instance.Base.Nickname, Actor.Instance.Base.AccountID); // 创建角色
#endif
NetHelper.SaveGuideProgress(1);
@ -1180,7 +1176,7 @@ public class LoginController : Singlenton<LoginController>
}
#if SDK_BILIBILI
helper.NotifyZone(Actor.Instance.Base.AccountID, Actor.Instance.Base.Nickname); // 通知区服
GSCSdkInterface.notifyZone(Actor.Instance.Base.AccountID, Actor.Instance.Base.Nickname); // 通知区服
#endif
}
}

View File

@ -55,21 +55,7 @@ public class GameLauncher : MonoBehaviour
private void Start()
{
#if SDK_BILIBILI
#if DEVELOPMENT_BUILD || DEBUG
string merchantID = "3973";
string appID = "11295";
string serverID = "10429";
string appKey = "93189717734e4383a6469a6b8aaea8c0";
Debug.Log("初始化Bilibili");
GSCSdkInterface.init(merchantID, appID, serverID, appKey, "11");
#else
string merchantID = "3973";
string appID = "11295";
string serverID = "10429";
string appKey = "93189717734e4383a6469a6b8aaea8c0";
Debug.Log("初始化Bilibili");
GSCSdkInterface.init(merchantID, appID, serverID, appKey, "11");
#endif
GSCSdkInterface.init();
#endif
versionUpdateUI = new TempUIHandle();

@ -1 +1 @@
Subproject commit ee43bd2bda273535fc1c5bf901cb75dbf883f56e
Subproject commit e1676843924d26e10561f4700fb205ef809bc4ce

View File

@ -156,28 +156,6 @@ namespace PhxhSDK
{
}
/// <summary>
/// 创建角色
/// </summary>
/// <param name="roleName"></param>
/// <param name="roleID"></param>
public void CreateRole(string roleName, string roleID)
{
GSCSdkInterface.createRole(roleName, roleID);
}
/// <summary>
/// 通知区服
/// </summary>
/// <param name="serverId"></param>
/// <param name="serverName"></param>
/// <param name="roleID"></param>
/// <param name="roleName"></param>
public void NotifyZone(string roleID, string roleName)
{
GSCSdkInterface.notifyZone(ServerID, ServerName, roleID, roleName);
}
}
}
#endif