This commit is contained in:
chfei authored and chfei committed 2026-09-14 09:16:59 +08:00
1 parent c2dcedd238
commit 16cdd3d46e
34 files changed
+837 -481

No files matched your search

+4 -4
View File
@@ -21,7 +21,7 @@ namespace Store.Client.Apis
/// </summary>
public DateTime GetServerTime()
{
HttpResult result = ServerRequest(new ServerHttpItem { URL = $"{_config.Host}/time.php" });
HttpResult result = ServerRequest(new HttpItem { URL = $"{_config.Host}/time.php" });
if (result.StatusCode == HttpStatusCode.OK)
{
if (DateTime.TryParse(result.Html, out DateTime dt))
@@ -42,7 +42,7 @@ namespace Store.Client.Apis
/// </summary>
public string GetAuthConfig()
{
ServerHttpItem item = new ServerHttpItem();
HttpItem item = new HttpItem();
item.URL = $"{_config.Host}?obj=api/config&act=auth_config";
HttpResult result = ServerRequest(item);
if (result.StatusCode == HttpStatusCode.OK)
@@ -59,7 +59,7 @@ namespace Store.Client.Apis
public string GetCacheServerRatio()
{
ServerHttpItem item = new ServerHttpItem();
HttpItem item = new HttpItem();
item.URL = _config.Host + "?" + _config.ObjUrl + "config&act=cache_service_mode";
item.Method = MethodType.Post;
//item.SignUser();
@@ -80,7 +80,7 @@ namespace Store.Client.Apis
//public HttpResult GetImageCache(string imgUrl)
//{
// long id = MD5Helper.GetLong(imgUrl);
// ServerHttpItem item = new ServerHttpItem();
// HttpItem item = new HttpItem();
// item.Method = MethodType.Post;
// item.URL = _config.Host + "?" + _config.ObjUrl + "add_img";
// item.Postdata = "act=get&table=" + Math.Abs(id % 1024) + "&id=" + id;