fix(build): 修复安卓构建依赖并整理服务器配置
This commit is contained in:
@@ -101,7 +101,7 @@ public class ZZTimeHelper
|
||||
HttpClient client = new HttpClient();
|
||||
client.Timeout = TimeSpan.FromSeconds(5);
|
||||
IConfig config = GContext.container.Resolve<IConfig>();
|
||||
string apiUrl = config.Get<string>(GConstant.K_Event_API_URL, "http://s101.local:18080/");
|
||||
string apiUrl = config.Get<string>(GConstant.K_Event_API_URL, CustomServerMgr.DefaultApiUrl);
|
||||
string url = $"{apiUrl}account/svrtime";
|
||||
var svrTimeStr = await client.GetStringAsync(url);
|
||||
// var svrTimeStr = await client.GetStringAsync(timeUrl);
|
||||
|
||||
Reference in New Issue
Block a user