OOPS!!!!!!!!!!!!!!!!!!!!!!!!!
This commit is contained in:
parent
2de19035ff
commit
bfd1819798
1 changed files with 7 additions and 6 deletions
|
@ -3,11 +3,11 @@
|
|||
namespace SharpChat.Flashii {
|
||||
public static class FlashiiUrls {
|
||||
private const string BASE_URL_FILE = @"msz_url.txt";
|
||||
private const string BASE_URL = @"https://flashii.net";
|
||||
private const string BASE_URL_FALLBACK = @"https://flashii.net";
|
||||
|
||||
private const string AUTH = BASE_URL + @"/_sockchat/verify";
|
||||
private const string BANS = BASE_URL + @"/_sockchat/bans";
|
||||
private const string BUMP = BASE_URL + @"/_sockchat/bump";
|
||||
private const string AUTH = @"/_sockchat/verify";
|
||||
private const string BANS = @"/_sockchat/bans";
|
||||
private const string BUMP = @"/_sockchat/bump";
|
||||
|
||||
public static string AuthURL { get; }
|
||||
public static string BansURL { get; }
|
||||
|
@ -17,14 +17,15 @@ namespace SharpChat.Flashii {
|
|||
AuthURL = GetURL(AUTH);
|
||||
BansURL = GetURL(BANS);
|
||||
BumpURL = GetURL(BUMP);
|
||||
System.Console.WriteLine(AuthURL);
|
||||
}
|
||||
|
||||
public static string GetBaseURL() {
|
||||
if(!File.Exists(BASE_URL_FILE))
|
||||
return BASE_URL;
|
||||
return BASE_URL_FALLBACK;
|
||||
string url = File.ReadAllText(BASE_URL_FILE).Trim().Trim('/');
|
||||
if(string.IsNullOrEmpty(url))
|
||||
return BASE_URL;
|
||||
return BASE_URL_FALLBACK;
|
||||
return url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue