登录时更新服务地址
This commit is contained in:
1 parent
b3c763ce2b
commit
91d1c3df15
2 files changed
+13
-2
No files matched your search
@@ -101,6 +101,17 @@ namespace Work
|
||||
BaseClass.OemId = BaseRegex.GetStringJson(ref html, "oem_id");
|
||||
BaseClass.OemName = BaseRegex.GetStringJson(ref html, "oem_name");
|
||||
BaseClass.IsOemOwner = BaseRegex.GetBoolJson(ref html, "is_oem_owner");
|
||||
#if DEBUG
|
||||
if (!string.IsNullOrEmpty(BaseRegex.GetStringJson(ref html, "prod_api_url")) && !BaseClass.LoginApiUrl.Contains("localhost") && !BaseClass.LoginApiUrl.Contains("127.0.0.1"))
|
||||
{
|
||||
BaseClass.LoginApiUrl = BaseRegex.GetStringJson(ref html, "prod_api_url").Split(';').FirstOrDefault();
|
||||
}
|
||||
#else
|
||||
if (!string.IsNullOrEmpty(BaseRegex.GetStringJson(ref html, "prod_api_url")))
|
||||
{
|
||||
BaseClass.LoginApiUrl = BaseRegex.GetStringJson(ref html, "prod_api_url").Split(';').FirstOrDefault();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (BaseClass.GroupId != 3 && BaseClass.GroupId != 4 && BaseClass.GroupId != 9 && BaseClass.GroupId != 10 && BaseClass.GroupId != 11)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user