optimize: remove unnecessary bindable objects

This commit is contained in:
2020-05-14 11:17:39 +08:00
parent f6dbec2fda
commit 08ad76d8de
16 changed files with 148 additions and 85 deletions

View File

@@ -16,7 +16,7 @@ namespace Pixiview.Utils
public static readonly string PersonalFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
#if __IOS__
public static readonly string CacheFolder = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);
#elif __ANDROID__
#else
public static readonly string CacheFolder = FileSystem.CacheDirectory;
#endif
@@ -153,7 +153,7 @@ namespace Pixiview.Utils
}
else
{
App.DebugError("read", $"file not found: {file}");
//App.DebugError("read", $"file not found: {file}");
return default;
}
try
@@ -434,16 +434,18 @@ namespace Pixiview.Utils
//public const string AcceptEncoding = "gzip, deflate";
public const string AcceptLanguage = "zh-cn";
//public const string UserId = "53887721";
//public const string Cookie =
// "PHPSESSID=5sn8n049j5c18l0tlj91qrjhesgddhjv; " +
// "a_type=0; b_type=1; c_type=29; d_type=2; " +
// "p_ab_d_id=1021624041; p_ab_id=2; p_ab_id_2=0; " +
// "privacy_policy_agreement=2; " +
// "login_ever=yes; " +
// "__cfduid=d84153bf70ae67315a8bc297299d39eb61588856027; " +
// "first_visit_datetime_pc=2020-05-07+21%3A53%3A47; " +
// "yuid_b=MYkIJXc";
#if !TEST
public const string UserId = "53887721";
public const string Cookie =
"PHPSESSID=5sn8n049j5c18l0tlj91qrjhesgddhjv; " +
"a_type=0; b_type=1; c_type=29; d_type=2; " +
"p_ab_d_id=1021624041; p_ab_id=2; p_ab_id_2=0; " +
"privacy_policy_agreement=2; " +
"login_ever=yes; " +
"__cfduid=d84153bf70ae67315a8bc297299d39eb61588856027; " +
"first_visit_datetime_pc=2020-05-07+21%3A53%3A47; " +
"yuid_b=MYkIJXc";
#else
public const string UserId = "2603358";
public const string Cookie =
"PHPSESSID=2603358_VHyGPeRaz7LpeoFkRsHvjXIpApCMb56a; " +
@@ -454,6 +456,7 @@ namespace Pixiview.Utils
"__cfduid=d9fa2d4d1ddd30db85ebb519f9855d2561587806747; " +
"first_visit_datetime_pc=2019-10-29+22%3A05%3A30; " +
"yuid_b=NgcXQWQ";
#endif
public static string GetThumbnailUrl(string url)
{