Skip to content

Commit 82b4ddb

Browse files
committed
Fix: Enhance prolific ID handling in standalone login process
1 parent 440ef64 commit 82b4ddb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Runtime/Core/PlayURPlugin.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,13 @@ public static Configuration ParseConfigurationResult(bool succ, JSONNode result
693693
instance.prolificFromStandaloneLoginInfo = result["prolificID"];
694694
}
695695
}
696+
if (result.HasKey("prolific") && result["prolific"] != "0")
697+
{
698+
if (!string.IsNullOrEmpty(instance.prolificFromStandaloneLoginInfo))
699+
{
700+
instance.prolificFromStandaloneLoginInfo = result["prolific"];
701+
}
702+
}
696703
if (!string.IsNullOrEmpty(instance.prolificFromStandaloneLoginInfo))
697704
{
698705
configuration.prolificID = instance.prolificFromStandaloneLoginInfo;
@@ -2279,7 +2286,7 @@ public static void Load(PlayUR.Core.Rest.ServerCallback callback)
22792286
catch (System.Exception e) { PlayUR.PlayURPlugin.LogError("Failed to convert " + value + " to " + type + ". Exception:" + e.GetType() + " - " + e.Message); }
22802287

22812288
}
2282-
2289+
22832290
if (callback != null) callback(succ, result);
22842291
});
22852292
}

0 commit comments

Comments
 (0)