34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
--- Client/Assets/Scripts/Services/AggUserService.cs (reviewed baseline)
|
|
|
|
+++ Client/Assets/Scripts/Services/AggUserService.cs
|
|
|
|
@@ -56,6 +56,15 @@
|
|
|
|
|
|
public override async Task<ELoginStep> Login(Action<int> progress, bool tryLoginByToken = true)
|
|
{
|
|
+#if UNITY_EDITOR && !SERVICE_HOST
|
|
+ if(game.PlayerDataStorage.PlayerKVGameplayLoop.Enabled)
|
|
+ {
|
|
+ CustomId=game.PlayerDataStorage.PlayerKVGameplayLoop.Permit.PlayerId;
|
|
+ OnInitData+=InitData;
|
|
+ try { return await LoginWithBackend(progress,"kv-loop"); }
|
|
+ finally { OnInitData-=InitData; }
|
|
+ }
|
|
+#endif
|
|
var backend=CaptureSaveBackend();
|
|
if(RejectSaveBackend(backend)) return ELoginStep.Api;
|
|
var generation = logoutGeneration;
|
|
@@ -224,6 +233,10 @@
|
|
|
|
}
|
|
private void InitData(IDictionary<string, string> data)
|
|
{
|
|
+#if UNITY_EDITOR && !SERVICE_HOST
|
|
+ // Editor loop has no channel SDK login. M31 already replaced account URLs and linked flags.
|
|
+ if(PlayerDataStorage.PlayerKVGameplayLoop.Enabled) return;
|
|
+#endif
|
|
if (data.TryGetValue(EAccoutType.hwGoogle.ToString(), out var google) && google == "1")
|
|
{
|
|
TYSdkFacade.TYAccountInfo.linkedAccout.Add(EAccoutType.hwGoogle);
|