dodo hold пре 2 година
родитељ
комит
0eeee354e2

+ 1 - 1
molilian.api/Controllers/public/ForwardController.cs

@@ -69,7 +69,7 @@ namespace molilian.api.Controllers
                         break;
                     }
             }
-            new LoggerLibrary("forward", "qyapi2ntfy").Info(form.Convert2Json()).SaveAsync();
+            _ = new LoggerLibrary("forward", "qyapi2ntfy").Info(form.Convert2Json()).SaveAsync();
             return new APIResult(new { errmsg, errcode });
         }
 

+ 57 - 9
molilian.api/Controllers/public/TkController.cs

@@ -10,6 +10,7 @@ using Microsoft.AspNetCore.Authentication;
 using TencentCloud.Ecm.V20190719.Models;
 using COSXML.Network;
 using System.Linq;
+using static dodohold.core.ZTOExpress.CreateOrderArgs;
 
 namespace molilian.api.Controllers
 {
@@ -71,7 +72,6 @@ namespace molilian.api.Controllers
             return await UnionParseCore.UnionParseAsync(content, channel, ip, oaid);
         }
 
-
         [HttpPost]
         public async Task<ActionResult> unsafeParse([FromBody] JsonElement form)
         {
@@ -86,6 +86,54 @@ namespace molilian.api.Controllers
             return await UnionParseCore.UnionParseAsync(content, channel, ip, oaid);
         }
 
+        //[HttpGet]
+        //public async Task<ActionResult> testParse()
+        //{
+        //    var ip = "127.0.0.1";
+        //    var oaid = "test-oaid";
+
+        //    var list = new DBContext.Table("tk_parse_logs")
+        //        .Where("success=1", null)
+        //        .Order("ID DESC")
+        //        .Limit(1000)
+        //        .Select<TkDataDTO>();
+
+        //    int success_total = 0, error_total = 0;
+        //    foreach (var item in list)
+        //    {
+        //        var result = UnionParseCore.testTaobaoParseAsync(item.rawContent, ip, oaid);
+        //        if (result.success)
+        //        {
+        //            success_total++;
+        //        }
+        //        else
+        //        {
+        //            Console.Write(result);
+        //        }
+        //    }
+
+        //    var list2 = new DBContext.Table("tk_parse_logs")
+        //        .Where("success=0", null)
+        //        .Order("ID DESC")
+        //        .Limit(100)
+        //        .Select<TkDataDTO>();
+
+        //    foreach (var item in list2)
+        //    {
+        //        var result = UnionParseCore.testTaobaoParseAsync(item.rawContent, ip, oaid);
+        //        if (result.success)
+        //        {
+        //            Console.Write(result);
+        //        }
+        //        else
+        //        {
+        //            error_total++;
+
+        //        }
+        //    }
+        //    return new APIResult(new { success_total, error_total });
+        //}
+
 
         [HttpPost]
         public async Task<ActionResult> unionCoupon([FromBody] JsonElement form, [FromQuery] string a = "", [FromQuery] int t = 0, [FromQuery] string sign = "")
@@ -341,7 +389,7 @@ namespace molilian.api.Controllers
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("api_error", "parse")
+                _ = new LoggerLibrary("api_error", "parse")
                     .Info(s, s2)
                     .Info($"【taobao】{account_name}", body)
                     .Info(ex.Message, ex.StackTrace)
@@ -387,7 +435,7 @@ namespace molilian.api.Controllers
                     result.reason = reason;
                     result.rawContent = content;
                     result.rawContent2 = content2;
-                    TkLogCore.LogAsync(result);
+                    _ = TkLogCore.LogAsync(result);
                     return new APIResult(result);
                 }
 
@@ -399,7 +447,7 @@ namespace molilian.api.Controllers
                     result.reason = "没有匹配账号";
                     result.rawContent = content;
                     result.rawContent2 = content2;
-                    TkLogCore.LogAsync(result);
+                    _ = TkLogCore.LogAsync(result);
                     return new APIResult(result);
                 }
 
@@ -411,7 +459,7 @@ namespace molilian.api.Controllers
                     result.reason = "没有匹配账号";
                     result.rawContent = content;
                     result.rawContent2 = content2;
-                    TkLogCore.LogAsync(result);
+                    _ = TkLogCore.LogAsync(result);
                     return new APIResult(result);
                 }
                 result = DataokeCore.JdParse(result, api, account, content);
@@ -419,7 +467,7 @@ namespace molilian.api.Controllers
             catch (Exception ex)
             {
 
-                new LoggerLibrary("api_error")
+                _ = new LoggerLibrary("api_error")
                     .Info(s, s2)
                     .Info("【jd】", body)
                     .Info(ex.Message, ex.StackTrace)
@@ -436,7 +484,7 @@ namespace molilian.api.Controllers
             }
             result.rawContent = content;
             result.rawContent2 = content2;
-            TkLogCore.LogAsync(result);
+            _ = TkLogCore.LogAsync(result);
             return new APIResult(new
             {
                 result.success,
@@ -600,7 +648,7 @@ namespace molilian.api.Controllers
 
             var ids = data.Select(e => e.Id).ToArray();
             log.Info(string.Join(',', ids));
-            log.SaveAsync();
+            _ = log.SaveAsync();
 
             return new APIResult(new
             {
@@ -644,7 +692,7 @@ namespace molilian.api.Controllers
 
             var ids = data.Select(e => e.Id).ToArray();
             log.Info(string.Join(',', ids));
-            log.SaveAsync();
+            _ = log.SaveAsync();
 
             return new APIResult(new
             {

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
molilian.api/Properties/PublishProfiles/https___ccr.ccs.tencentyun.com_shaobin.pubxml.user


+ 1 - 7
molilian.core/Core/taoke/OrderTrackingCore.cs

@@ -23,13 +23,7 @@ namespace molilian.core
         {
             var config = TkConfigCore.Get();
             var ttl = config.fake_click_ttl * 3600;
-            string cacheKey = $":cache:order_summary:{item.accountName}:{item.itemId}";
-            RedisHelper.Set(cacheKey, item, ttl);
-
-            cacheKey = $":cache:order_summary:{item.accountName}:{item.itemName}";
-            RedisHelper.Set(cacheKey, item, ttl);
-
-            cacheKey = $":cache:order_summary:{item.accountId}:{item.itemId}";
+            string cacheKey = $":cache:order_summary:{item.accountId}:{item.itemId}";
             RedisHelper.Set(cacheKey, item, ttl);
 
             cacheKey = $":cache:order_summary:{item.accountId}:{item.itemName}";

+ 7 - 4
molilian.core/Core/taoke/TkLogCore.cs

@@ -207,7 +207,7 @@ namespace molilian.core
             {
                 transaction.Rollback();
 
-                new LoggerLibrary("database_error", "parse_log")
+                _ = new LoggerLibrary("database_error", "parse_log")
                     .Info(ex.Message, ex.StackTrace)
                     .SaveAsync();
 
@@ -270,7 +270,7 @@ namespace molilian.core
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("unionParse", "database_error")
+                _ = new LoggerLibrary("unionParse", "database_error")
                 .Info(response.rawContent, response.rawContent2)
                 .Info(response.Convert2Json())
                 .Info(ex.Message, ex.StackTrace)
@@ -280,6 +280,9 @@ namespace molilian.core
 
         public static async Task ParseLogAsync(TkDataDTO response, AlimamaPlus? alimamaPlus = null)
         {
+#if DEBUG
+            return;
+#endif
             try
             {
                 var ts = DateTime.Now - response.create_time;
@@ -307,7 +310,7 @@ namespace molilian.core
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("unionParse", "database_error")
+                _ = new LoggerLibrary("unionParse", "database_error")
                 .Info(response.rawContent)
                 .Info(response.Convert2Json())
                 .Info(ex.Message, ex.StackTrace)
@@ -342,7 +345,7 @@ namespace molilian.core
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("unionCoupon", "database_error")
+                _ = new LoggerLibrary("unionCoupon", "database_error")
                 .Info(response.rawContent)
                 .Info(response.Convert2Json())
                 .Info(ex.Message, ex.StackTrace)

+ 2 - 2
molilian.core/Core/taoke/UnionCouponCore.cs

@@ -93,7 +93,7 @@ namespace molilian.core
                 }
                 else
                 {
-                    new LoggerLibrary("unionCoupon", "tb_error")
+                    _ = new LoggerLibrary("unionCoupon", "tb_error")
                         .Info(ip, oaid)
                         .Info(content)
                         .Info(ex.Message, ex.StackTrace)
@@ -208,7 +208,7 @@ namespace molilian.core
                 }
                 else
                 {
-                    new LoggerLibrary("unionCoupon", "jd_error")
+                    _ = new LoggerLibrary("unionCoupon", "jd_error")
                         .Info(ip, oaid)
                         .Info(content)
                         .Info(ex.Message, ex.StackTrace)

+ 69 - 11
molilian.core/Core/taoke/UnionParseCore.cs

@@ -45,7 +45,7 @@ namespace molilian.core
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("unionParse", "wemeet_error")
+                _ = new LoggerLibrary("unionParse", "wemeet_error")
                     .Info(ip, oaid)
                     .Info(content)
                     .Info(ex.Message, ex.StackTrace)
@@ -83,7 +83,7 @@ namespace molilian.core
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("unionParse", "pan_error")
+                _ = new LoggerLibrary("unionParse", "pan_error")
                     .Info(ip, oaid)
                     .Info(content)
                     .Info(ex.Message, ex.StackTrace)
@@ -124,7 +124,6 @@ namespace molilian.core
                     result.success = false;
                     result.message = "放弃转链";
                     result.reason = "平台错误";
-                    result.itemName = "点击打开淘宝APP";
 
                     _ = TkLogCore.ParseLogAsync(result);
                     return new APIResult(new
@@ -136,8 +135,26 @@ namespace molilian.core
                         result.deeplink_url,
                     }, APIResultCodeEnum.NotAcceptable);
                 }
+                string reason = string.Empty;
+                if (string.IsNullOrEmpty(result.shortLinkurl) && AlimamaPlus.FirstFilterIgnoreRequest(content, out reason))
+                {
+                    //没有短链接都放弃
+                    result.success = false;
+                    result.message = "放弃转链";
+                    result.itemName = "点击打开淘宝APP";
+                    result.reason = "初步筛选";
+                    _ = TkLogCore.ParseLogAsync(result);
+                    return new APIResult(new
+                    {
+                        result.success,
+                        result.message,
+                        result.content,
+                        result.itemName,
+                        result.deeplink_url,
+                    });
+                }
 
-                if (AlimamaPlus.ShouldIgnoreRequest(ip, oaid, out string reason))
+                if (AlimamaPlus.ShouldIgnoreRequest(ip, oaid, out reason))
                 {
                     result.success = false;
                     result.message = "放弃转链";
@@ -149,13 +166,10 @@ namespace molilian.core
                         result.success,
                         result.message,
                         result.content,
-                        result.couponAmount,
-                        result.taoToken,
-                        result.shortLinkurl,
+                        result.itemName,
                         result.deeplink_url,
                     });
                 }
-
                 var account = TkPoolCore.GetOne(TkPoolCore.TkAction.parse);
                 if (account == null)
                 {
@@ -191,7 +205,7 @@ namespace molilian.core
                 }
                 else
                 {
-                    new LoggerLibrary("unionParse", "tb_error")
+                    _ = new LoggerLibrary("unionParse", "tb_error")
                         .Info(ip, oaid)
                         .Info(content)
                         .Info(ex.Message, ex.StackTrace)
@@ -232,6 +246,50 @@ namespace molilian.core
             });
         }
 
+        //public static TkDataDTO testTaobaoParseAsync(string content, string ip = "", string oaid = "")
+        //{
+        //    var result = AlimamaPlus.GetFormattedObject(content, ip, oaid);
+        //    content = content.UrlDecode();
+        //    content = content[..Math.Min(1000, content.Length)];
+        //    result.rawContent = content;
+        //    try
+        //    {
+        //        if (AlimamaPlus.OtherPlatform(content))
+        //        {
+        //            result.success = false;
+        //            result.message = "放弃转链";
+        //            result.reason = "平台错误";
+        //            return result;
+        //        }
+        //        string reason = string.Empty;
+        //        if (string.IsNullOrEmpty(result.shortLinkurl) && AlimamaPlus.FirstFilterIgnoreRequest(content, out reason))
+        //        {
+        //            //没有短链接都放弃
+        //            result.success = false;
+        //            result.message = "放弃转链";
+        //            result.itemName = "点击打开淘宝APP";
+        //            result.reason = "初步筛选";
+        //            return result;
+        //        }
+
+        //        if (AlimamaPlus.ShouldIgnoreRequest(ip, oaid, out reason))
+        //        {
+        //            result.success = false;
+        //            result.message = "放弃转链";
+        //            result.itemName = "点击打开淘宝APP";
+        //            result.reason = reason;
+        //            return result;
+        //        }
+        //        result.success = true;
+        //        return result;
+        //    }
+        //    catch (Exception ex)
+        //    {
+        //        result.success = false;
+        //        return result;
+        //    }
+        //}
+
         public static async Task<APIResult> JdParseAsync(string content, string ip, string oaid)
         {
             var result = JdUnionPlus.GetFormattedObject(content, ip, oaid);
@@ -271,7 +329,7 @@ namespace molilian.core
                 else
                 {
                     IfExceptional = true;
-                    new LoggerLibrary("unionParse", "jd_error")
+                    _ = new LoggerLibrary("unionParse", "jd_error")
                         .Info(ip, oaid)
                         .Info(content)
                         .Info(ex.Message, ex.StackTrace)
@@ -341,7 +399,7 @@ namespace molilian.core
                 else
                 {
                     IfExceptional = true;
-                    new LoggerLibrary("unionParse", "dy_error")
+                    _ = new LoggerLibrary("unionParse", "dy_error")
                         .Info(ip, oaid)
                         .Info(content)
                         .Info(ex.Message, ex.StackTrace)

+ 4 - 4
molilian.core/Plus/Alimama/account.cs

@@ -57,7 +57,7 @@ namespace molilian.core
                 bool success = root.Read("success", false);
                 if (!success)
                 {
-                    new LoggerLibrary("account", "error")
+                    _ = new LoggerLibrary("account", "error")
                         .Info(url, body)
                         .SaveAsync();
                     throw new Exception(body);
@@ -133,7 +133,7 @@ namespace molilian.core
 
                     if (!success)
                     {
-                        new LoggerLibrary("account", "error")
+                        _ = new LoggerLibrary("account", "error")
                             .Info(url, body)
                             .SaveAsync();
                         return (false, body);
@@ -165,7 +165,7 @@ namespace molilian.core
                     bool success = root.Read("success", false);
                     if (!success)
                     {
-                        new LoggerLibrary("account", "error")
+                        _ = new LoggerLibrary("account", "error")
                             .Info(url, body)
                             .SaveAsync();
                         return (false, body);
@@ -223,7 +223,7 @@ namespace molilian.core
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("account", "error")
+                _ = new LoggerLibrary("account", "error")
                     .Info(ex.Message, ex.StackTrace)
                     .SaveAsync();
 

+ 1 - 1
molilian.core/Plus/Alimama/bills.cs

@@ -44,7 +44,7 @@ namespace molilian.core
 
                 if (response.ResponseException != null)
                 {
-                    new LoggerLibrary("api_error", "fail")
+                    _ = new LoggerLibrary("api_error", "fail")
                         .Info(response.ResponseException.Message, response.ResponseException.StackTrace)
                         .SaveAsync();
                     throw response.ResponseException;

+ 5 - 5
molilian.core/Plus/Alimama/crawler.cs

@@ -212,7 +212,7 @@ ON DUPLICATE KEY UPDATE
                 bool success = root.Read("success", false);
                 if (!success)
                 {
-                    new LoggerLibrary("report", "error")
+                    _ = new LoggerLibrary("report", "error")
                         .Info(url, body)
                         .SaveAsync();
                     throw new Exception(body);
@@ -324,7 +324,7 @@ ON DUPLICATE KEY UPDATE
                 bool success = root.Read("success", false);
                 if (!success)
                 {
-                    new LoggerLibrary("report", "error")
+                    _ = new LoggerLibrary("report", "error")
                         .Info(url, body)
                         .SaveAsync();
                     throw new Exception(body);
@@ -410,7 +410,7 @@ ON DUPLICATE KEY UPDATE
             bool success = root.Read("success", false);
             if (!success)
             {
-                new LoggerLibrary("report", "error")
+                _ = new LoggerLibrary("report", "error")
                     .Info(url, body)
                     .SaveAsync();
                 throw new Exception(body);
@@ -513,13 +513,13 @@ ON DUPLICATE KEY UPDATE
 
                 if (!success)
                 {
-                    new LoggerLibrary("violationu", "warning_error")
+                    _ = new LoggerLibrary("violationu", "warning_error")
                         .Info(url, body)
                         .SaveAsync();
                     throw new Exception(body);
                 }
                 if (totalCount == 0) return;
-                new LoggerLibrary("violationu", "warning").Info(url, body).SaveAsync();
+                _ = new LoggerLibrary("violationu", "warning").Info(url, body).SaveAsync();
 
                 var list = root.ElementRead("data").ElementRead("result").EnumerateArray();
                 foreach (var data in list)

+ 3 - 3
molilian.core/Plus/Alimama/orders.cs

@@ -173,7 +173,7 @@ SET tr.order_ord_amt_14 = sub.order_ord_amt, tr.order_ord_tfee_14 = sub.order_or
 
                 if (response.ResponseException != null)
                 {
-                    new LoggerLibrary("api_error", "fail")
+                    _ = new LoggerLibrary("api_error", "fail")
                         .Info(response.ResponseException.Message, response.ResponseException.StackTrace)
                         .SaveAsync();
                     throw response.ResponseException;
@@ -338,13 +338,13 @@ SET tr.order_ord_amt_14 = sub.order_ord_amt, tr.order_ord_tfee_14 = sub.order_or
 
                 if (!success)
                 {
-                    new LoggerLibrary("violationu", "warning_error")
+                    _ = new LoggerLibrary("violationu", "warning_error")
                         .Info(url, body)
                         .SaveAsync();
                     throw new Exception(body);
                 }
                 if (totalCount == 0) return;
-                new LoggerLibrary("violationu", "warning").Info(url, body).SaveAsync();
+                _ = new LoggerLibrary("violationu", "warning").Info(url, body).SaveAsync();
 
                 var list = root.ElementRead("data").ElementRead("result").EnumerateArray();
                 foreach (var data in list)

+ 43 - 2
molilian.core/Plus/Alimama/parse.cs

@@ -151,6 +151,21 @@ namespace molilian.core
         }
 
 
+        public static string GetTaobaoLink(string content)
+        {
+            if (string.IsNullOrEmpty(content)) return content;
+            string result = content;
+            string pattern = @"(https?://(?:[\w-]+\.)*(?:tb\.cn|taobao\.com|juhuasuan.com|tmall\.com|tmall\.hk)(?:/[^\s]*)?)";
+            Regex regex = new(pattern);
+            MatchCollection matches = regex.Matches(content);
+
+            if (matches.Count > 0)
+            {
+                return matches[^1].Value; // 返回第一个匹配到的 URL
+            }
+            return string.Empty;
+        }
+
         public static string GetDeeplink(string url)
         {
             if (string.IsNullOrEmpty(url)) return "tbopen://m.taobao.com/tbopen/index.html";
@@ -230,11 +245,38 @@ namespace molilian.core
             return false;
         }
 
+        public static bool MatchRegexes(string text)
+        {
+            string regex1 = @"(.*?\d{2}\s[a-zA-Z]{2}\d{4}\s.*?[$¥🗝₴€₤£₳✔《💰🔑🎵✔💲🔐📲]+[a-zA-Z0-9\s]+[$¥🗝₴€₤£₳✔《💰🔑🎵✔💲🔐📲]).* [$¥🗝₴€₤£₳✔《💰🔑🎵✔💲🔐📲]+[a-zA-Z0-9\s]+[$¥🗝₴€₤£₳✔《💰🔑🎵✔💲🔐📲](\s*(https?://[^\s]+)?)?\s*([a-zA-Z]{2}\d{4})?\s*(.*)";
+            Regex r1 = new(regex1);
+            bool match1 = r1.IsMatch(text);
+            return match1;
+        }
+        public static bool FirstFilterIgnoreRequest(string content, out string reason)
+        {
+            reason = string.Empty;
+            try
+            {
+                // 正则过滤
+                var matchResult = MatchRegexes(content);
+                if (matchResult) return false;
+                reason = "初步筛选";
+                return true;
+            }
+            catch (Exception ex)
+            {
+                reason = "配置异常";
+                return true;
+            }
+
+        }
+
         public static bool ShouldIgnoreRequest(string ip, string oaid, out string reason)
         {
             reason = string.Empty;
             try
             {
+                // IP和流量控制
                 var config = TkConfigCore.Get();
                 string ignorePercentageCity = config.ignorePercentageCity;
                 string? ipInfo = IP2RegionPlus.Search(ip);
@@ -260,10 +302,9 @@ namespace molilian.core
             }
         }
 
-
         public static TkDataDTO GetFormattedObject(string content, string ip, string oaid)
         {
-            string shortLinkurl = GetLink(content);
+            string shortLinkurl = GetTaobaoLink(content);
             string deeplink_url = GetDeeplink(shortLinkurl);
             return new TkDataDTO()
             {

+ 4 - 4
molilian.core/Plus/Alimama/parse_2.cs

@@ -304,7 +304,7 @@ namespace molilian.core
 
                     if (response.ResponseException != null)
                     {
-                        new LoggerLibrary("api_error", "fail")
+                        _ = new LoggerLibrary("api_error", "fail")
                             .Info(response.ResponseException.Message, response.ResponseException.StackTrace)
                             .SaveAsync();
                         throw response.ResponseException;
@@ -388,7 +388,7 @@ namespace molilian.core
                                     headers += $"{h.Key}: {Value}\n";
                                 }
                             }
-                            new LoggerLibrary("api_error", "fail")
+                            _ = new LoggerLibrary("api_error", "fail")
                                 .Info(message, content)
                                 .Info(headers, body)
                                 .SaveAsync();
@@ -483,7 +483,7 @@ namespace molilian.core
 
                     if (response.ResponseException != null)
                     {
-                        new LoggerLibrary("api_error", "fail")
+                        _ = new LoggerLibrary("api_error", "fail")
                             .Info(response.ResponseException.Message, response.ResponseException.StackTrace)
                             .SaveAsync();
                         throw response.ResponseException;
@@ -570,7 +570,7 @@ namespace molilian.core
                                     headers += $"{h.Key}: {Value}\n";
                                 }
                             }
-                            new LoggerLibrary("api_error", "fail")
+                            _ = new LoggerLibrary("api_error", "fail")
                                 .Info(message, content)
                                 .Info(headers, body)
                                 .SaveAsync();

+ 4 - 4
molilian.core/Plus/DataokePlus.cs

@@ -84,7 +84,7 @@ namespace molilian.core
 
             var log = new LoggerLibrary("dataoke", "promotion-union-convert").Info(unionId, materialId);
             string body = app.Get(api, version, apiParameters);
-            log.Info(body).SaveAsync();
+            _ = log.Info(body).SaveAsync();
             //var root = body.Convert2JsonElement();
             return body;
         }
@@ -104,7 +104,7 @@ namespace molilian.core
 
                 var log = new LoggerLibrary("dataoke", "details").Info(string.Join(',', skuIds));
                 body = app.Get(api, version, apiParameters);
-                log.Info(body).SaveAsync();
+                _ = log.Info(body).SaveAsync();
 
 
                 var root = body.Convert2JsonElement();
@@ -117,7 +117,7 @@ namespace molilian.core
             }
             catch (Exception ex)
             {
-                new LoggerLibrary("dtk_error", "fail")
+                _ = new LoggerLibrary("dtk_error", "fail")
                     .Info(string.Join(',', skuIds), body)
                     .Info(ex.Message, ex.StackTrace)
                     .SaveAsync();
@@ -155,7 +155,7 @@ namespace molilian.core
 
                 var log = new LoggerLibrary("dataoke", "parseUrl").Info(url);
                 string body = app.Get(api, version, apiParameters);
-                log.Info(body).SaveAsync();
+                _ = log.Info(body).SaveAsync();
 
                 var root = body.Convert2JsonElement();
                 int code = root.Read<int>("code", -1);

+ 1 - 1
molilian.core/Plus/DyUnion/base.cs

@@ -158,7 +158,7 @@ namespace molilian.core
             client.Post(postData);
             var response = await client.RequestAsync(url);
             var body = response.Body();
-            log.Info(body).SaveAsync();
+            _ = log.Info(body).SaveAsync();
 
             //var root = body.Convert2JsonElement();
             return body;

+ 2 - 2
molilian.core/Plus/JDUnion/base.cs

@@ -78,7 +78,7 @@ namespace molilian.core
             var client = new WebClientUtility();
             var response = client.Request(url);
             var body = response.Body();
-            log.Info(body).SaveAsync();
+            _ = log.Info(body).SaveAsync();
 
             //var root = body.Convert2JsonElement();
             return body;
@@ -104,7 +104,7 @@ namespace molilian.core
             var client = new WebClientUtility();
             var response = await client.RequestAsync(url);
             var body = response.Body();
-            log.Info(body).SaveAsync();
+            _ = log.Info(body).SaveAsync();
 
             return body;
         }

+ 2 - 2
molilian.core/Plus/JDUnion/goods.cs

@@ -60,7 +60,7 @@ namespace molilian.core
                     return url;
                 }
             }
-            new LoggerLibrary("JdUnion", "promotion_get_error").Info(body).SaveAsync();
+            _ = new LoggerLibrary("JdUnion", "promotion_get_error").Info(body).SaveAsync();
             return null;
         }
 
@@ -93,7 +93,7 @@ namespace molilian.core
                     return url;
                 }
             }
-            new LoggerLibrary("JdUnion", "promotion_get_error").Info(body).SaveAsync();
+            _ = new LoggerLibrary("JdUnion", "promotion_get_error").Info(body).SaveAsync();
             return null;
         }
 

+ 1 - 1
molilian.core/Plus/UploadFile/ImageHostingPlus.cs

@@ -87,7 +87,7 @@ namespace molilian.core
             result.success = root.Read<bool>("success", false);
             if (result.success)
             {
-                new LoggerLibrary("ImageHosting", "meituan").Info(responseBody).SaveAsync();
+                _ = new LoggerLibrary("ImageHosting", "meituan").Info(responseBody).SaveAsync();
             }
 
             result.code = root.Read<int>("code", 0);

Неке датотеке нису приказане због велике количине промена