|
|
@@ -27,7 +27,7 @@ namespace molilian.api.Controllers
|
|
|
_accessor = accessor;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
[HttpGet]
|
|
|
public async Task<ActionResult> FillPushReortData(DateTime date = default)
|
|
|
{
|
|
|
@@ -594,6 +594,9 @@ namespace molilian.api.Controllers
|
|
|
}
|
|
|
|
|
|
string filter = "";
|
|
|
+#if DEBUG
|
|
|
+ filter = "id IN (37, 15)";
|
|
|
+#endif
|
|
|
var jd_list = new DBContext.Table("jd_pool").Where(filter, null).Select<JdPoolDTO>();
|
|
|
if (jd_list != null)
|
|
|
{
|
|
|
@@ -620,6 +623,12 @@ namespace molilian.api.Controllers
|
|
|
continue;
|
|
|
}
|
|
|
if (!account.status) continue;
|
|
|
+
|
|
|
+ string lockKey = $"lock:exception:sleep:jd_{account.id}";
|
|
|
+ if (!string.IsNullOrEmpty(RedisHelper.Get(lockKey))) continue;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if (!string.IsNullOrEmpty(account.cookies))
|
|
|
{
|
|
|
try
|
|
|
@@ -644,6 +653,10 @@ namespace molilian.api.Controllers
|
|
|
account.status = false;
|
|
|
_ = JdPoolCore.DisabledAsync(account.id, account.name, ex.Message);
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ RedisHelper.Set(lockKey, 1, 3600);
|
|
|
+ }
|
|
|
message = $"【JD报表接口异常】{account.id}:{account.name}\tqueryTodaySpreadEffectData\n{ex.Message}\n{ex.StackTrace}";
|
|
|
NotifyCore.Notify(message);
|
|
|
continue;
|