|
|
@@ -9,6 +9,7 @@ using System.Security.Cryptography;
|
|
|
using Microsoft.AspNetCore.Authentication;
|
|
|
using TencentCloud.Ecm.V20190719.Models;
|
|
|
using COSXML.Network;
|
|
|
+using System.Linq;
|
|
|
|
|
|
namespace molilian.api.Controllers
|
|
|
{
|
|
|
@@ -556,7 +557,7 @@ namespace molilian.api.Controllers
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
@@ -564,17 +565,24 @@ namespace molilian.api.Controllers
|
|
|
public async Task<ActionResult> unsafeParseDpList([FromQuery] string query = "", [FromQuery] string a = "", [FromQuery] int t = 0, [FromQuery] string sign = "")
|
|
|
{
|
|
|
string filter = $"batchId=@query";
|
|
|
+ var account_list = TkPoolCore.List();
|
|
|
+ List<int> account_ids = [];
|
|
|
+ if (account_list.Any())
|
|
|
+ {
|
|
|
+ account_ids = account_list.Where(e => e.enable_fake_click).Select(e => e.id).ToList();
|
|
|
+ filter += $" AND accountId IN @account_ids";
|
|
|
+ }
|
|
|
string orderBy = "paid_time ASC";
|
|
|
|
|
|
var data = new DBContext.Table("tk_order_tracking")
|
|
|
- .Where(filter, new { query })
|
|
|
+ .Where(filter, new { query, account_ids })
|
|
|
.Order(orderBy)
|
|
|
.Select<TkOrderTrackingDTO>();
|
|
|
|
|
|
- List<object> list = new();
|
|
|
+ List<object> list = [];
|
|
|
foreach (var item in data)
|
|
|
{
|
|
|
- list.Add(new { url = item.deeplinkUrl, count = 1, time = item.exp_time });
|
|
|
+ list.Add(new { url = item.deeplinkUrl, count = 4, time = item.exp_time });
|
|
|
}
|
|
|
|
|
|
return new APIResult(new
|