Преглед изворни кода

tkStatus入参从int改成int[]

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

+ 3 - 3
molilian.api/Controllers/admin/TaobaoOrderController.cs

@@ -26,7 +26,7 @@ namespace molilian.api.Controllers
             string sort = form.Read<string>("sort");
             string order = form.Read<string>("order");
             string name = form.Read<string>("keyword");
-            int tkStatus = form.Read("tkStatus", 0);
+            var tkStatus = form.PathReadArray<int>("tkStatus[]");
             int maxTotal = form.Read("maxTotal", 0);
 
             var time = form.PathReadArray<string>("query_date[]");
@@ -36,9 +36,9 @@ namespace molilian.api.Controllers
             {
                 filter += $" AND accountId IN (SELECT ID FROM tk_pool WHERE company=@name)";
             }
-            if (tkStatus > 0)
+            if (tkStatus.Any())
             {
-                filter += $" AND tkStatus=@tkStatus";
+                filter += $" AND tkStatus IN @tkStatus";
             }
 
             DateTime stime = DateTime.MinValue, etime = DateTime.MinValue;

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


+ 5 - 3
molilian.core/Plus/Alimama/parse.cs

@@ -95,9 +95,10 @@ namespace molilian.core
             else
             {
                 //处理过后的正文 用于转链
-                if (result.success) content = result.content;
-                result.content = content;
-                result = await alimamaParseAsync(content, result);
+                if (!result.success) { result.content = content; }
+
+                result = await alimamaParseAsync(result.content, result);
+                if (string.IsNullOrEmpty(result.itemName)) result.itemName = GetTitle(content);
             }
 
             result.link_type = result.link_type;
@@ -158,6 +159,7 @@ namespace molilian.core
             content = content.Replace("点击链接直接打开 或者 淘宝搜索直接打开", string.Empty).Trim();
             string[] words = Regex.Split(content, @"\s+");
             string word = words[^1];
+            word = word.TrimStart('「').TrimEnd('」');
             return word;
         }
 

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