update:更新flexion 以及sdk 接入
This commit is contained in:
18
sdk-intergration/Packages/tysdk/Runtime/ChannelConfig.cs
Normal file
18
sdk-intergration/Packages/tysdk/Runtime/ChannelConfig.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace tysdk
|
||||
{
|
||||
public static class ChannelConfig
|
||||
{
|
||||
public static string Channel { get; private set; } = "GooglePlay";
|
||||
|
||||
public static string PayType => Channel switch
|
||||
{
|
||||
"Rustore" => "rustore.global.app",
|
||||
"Flexion" => "flexion.global.app",
|
||||
_ => "googleiab.global.app"
|
||||
};
|
||||
|
||||
public static int LoginTimeoutSeconds => Channel == "Rustore" ? 120 : 30;
|
||||
|
||||
public static void SetChannel(string channel) { Channel = channel; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user