Compare commits

...

3 Commits

Author SHA1 Message Date
Aigio Liu e652dfc161 fix test rsa public key 2023-08-12 14:56:49 +08:00
Aigio Liu aabc577a78 Test 2023-04-24 08:52:26 +08:00
Aigio Liu e7a82c8b39 Update new apibaseurl 2023-04-21 10:37:54 +08:00
+19 -10
View File
@@ -96,6 +96,12 @@ namespace System.Application.UI
public static AppSettings AppSettings => GetAppSettings(); public static AppSettings AppSettings => GetAppSettings();
const string DevRSAPublicKey =
"""
{"v":"AQAB","n":"z3JV6g-cRPGBef0Dk_zCV3iwfg2pfoJ5dCyZdzWu1SznOZEOFoBSNVOzSSJB-9_WrsmjB2TFtxebTa3EqfLMtOYjpVZzIfWpGX2OMOelIwOsaBkrWzoxlFDJDD0ZDrp0027FtpbrGAb3HwWF73KxiQfpXGU_6W881ALz6D1JnQu1EaKwZULCu8ACiIRp9EBswqMMamWYYj8caGKywohBHMdwURV3y451jNrSjLSXcdGVRACEa1agj81EcBCr9331pyBznHC0rXgLyTqnyk6bGvMqILPqeEs5P375RftzniwsCHZCpXo5EAtUCEzIE86dY6mBv6vgdv0WiJ1kpER-MqT84mKXqi5Yw7KiVtIjGPg8Sv58oLYbVYENDZZqve2rDy_XpoCN4XFCVEjrLYmJ8NN6qBNnjx7TO7OIrYBxkB4DRDp2P1uwMLFtke9JtrtGB-ZGkxRA4hqnXNvnP6VcYfo1uWd8EvjSp8UZndCFEqP63DKNCZHBQFFXV3oMGEG9fUvMO6URRAVW3A_MF6Sv4YWaxNPUlUuE5t_UiqCkIf_Bedbckdwtq6n5w37Jgm_2N2L2UZuc8FM-Jywx4khViG8LpGdTadBx5f6udVXripfLpPcYVEDbR0_6nRKfFLa4hV2efzTY47DpAJ4eFnw5cPZLchnr_CxoWmW0UGKqpsE"}
""";
static AppSettings GetAppSettings(bool isTrace = false) static AppSettings GetAppSettings(bool isTrace = false)
{ {
if (mAppSettings == null) if (mAppSettings == null)
@@ -104,7 +110,8 @@ namespace System.Application.UI
{ {
//AppVersion = GetResValueGuid("app-id", isSingle: false, ResSecrets.ResValueFormat.StringGuidN), //AppVersion = GetResValueGuid("app-id", isSingle: false, ResSecrets.ResValueFormat.StringGuidN),
AesSecret = ResSecrets.GetResValue("aes-key", isSingle: true, ResSecrets.ResValueFormat.String), AesSecret = ResSecrets.GetResValue("aes-key", isSingle: true, ResSecrets.ResValueFormat.String),
RSASecret = ResSecrets.GetResValue("rsa-public-key", isSingle: false, ResSecrets.ResValueFormat.String), //RSASecret = ResSecrets.GetResValue("rsa-public-key", isSingle: false, ResSecrets.ResValueFormat.String),
RSASecret = DevRSAPublicKey,
//MASLClientId = GetResValueGuid("masl-client-id", isSingle: true, ResSecrets.ResValueFormat.StringGuidN), //MASLClientId = GetResValueGuid("masl-client-id", isSingle: true, ResSecrets.ResValueFormat.StringGuidN),
}; };
SetApiBaseUrl(mAppSettings); SetApiBaseUrl(mAppSettings);
@@ -138,14 +145,16 @@ namespace System.Application.UI
// } // }
// } // }
//#endif //#endif
var value = // var value =
(_ThisAssembly.Debuggable || !s.GetIsOfficialChannelPackage()) ? // (_ThisAssembly.Debuggable || !s.GetIsOfficialChannelPackage()) ?
#if USE_DEBUG_SERVER //#if USE_DEBUG_SERVER
Constants.Urls.BaseUrl_API_Debug // Constants.Urls.BaseUrl_API_Debug
#else //#else
Constants.Urls.BaseUrl_API_Development // Constants.Urls.BaseUrl_API_Development
#endif //#endif
: Constants.Urls.BaseUrl_API_Production; // : Constants.Urls.BaseUrl_API_Production;
const string value = "https://steampp.mossimo.net:8800";
//const string value = "https://localhost:7068";
s.ApiBaseUrl = Constants.Urls.ApiBaseUrl = value; s.ApiBaseUrl = Constants.Urls.ApiBaseUrl = value;
} }
} }
@@ -679,7 +688,7 @@ namespace System.Application.UI
}; };
req.SetDeviceId(); req.SetDeviceId();
// 匿名统计与通知公告 // 匿名统计与通知公告
await csc.ActiveUser.Post(req); var rsp = await csc.ActiveUser.Post(req);
#if DEBUG #if DEBUG
INotificationService.Notify(type); INotificationService.Notify(type);
#endif #endif