|
|
@@ -31,6 +31,12 @@ namespace molilian.core
|
|
|
if (!list.Any()) return null;
|
|
|
return list.Where(e => e.id == id).FirstOrDefault();
|
|
|
}
|
|
|
+ public static async Task<TkPoolDTO> ALLGetOneAsync(int id)
|
|
|
+ {
|
|
|
+ var list = await AllListAsync();
|
|
|
+ if (!list.Any()) return null;
|
|
|
+ return list.Where(e => e.id == id).FirstOrDefault();
|
|
|
+ }
|
|
|
|
|
|
public static async Task<TkPoolDTO> GetOneAsync2(TkAction action)
|
|
|
{
|
|
|
@@ -345,11 +351,11 @@ namespace molilian.core
|
|
|
priority = NifyMessagePriority.high,
|
|
|
tags = ["red_circle"]
|
|
|
});
|
|
|
- NotifyCore.AnPushNotify("暂停", $"【淘客{accountId}:{name}】{endpoint} 暂停");
|
|
|
- EndPointCore.NotifyReload(true);
|
|
|
+ _ = NotifyCore.QYWeixinPushNotifyAsync("暂停", $"【淘客{accountId}:{name}】{endpoint} 暂停");
|
|
|
+ _ = EndPointCore.NotifyReload(true);
|
|
|
}
|
|
|
|
|
|
- public static void Disabled(int accountId, string name, string content)
|
|
|
+ public static void Disabled(int accountId, string name, string content, bool is_hide)
|
|
|
{
|
|
|
#if DEBUG
|
|
|
#else
|
|
|
@@ -378,8 +384,11 @@ namespace molilian.core
|
|
|
tags = ["red_circle"]
|
|
|
});
|
|
|
|
|
|
- NotifyCore.AnPushNotify("掉线", $"【淘客{accountId}:{name}】cookie 掉线");
|
|
|
- EndPointCore.NotifyReload(true);
|
|
|
+ if (!is_hide)
|
|
|
+ {
|
|
|
+ _ = NotifyCore.QYWeixinPushNotifyAsync("掉线", $"【淘客{accountId}:{name}】cookie 掉线");
|
|
|
+ }
|
|
|
+ _ = EndPointCore.NotifyReload(true);
|
|
|
}
|
|
|
|
|
|
public static int UpdateCookies(string cookies, string user_agent)
|
|
|
@@ -433,8 +442,8 @@ namespace molilian.core
|
|
|
message = $"【淘客{accountId}:{company}】cookie 上线",
|
|
|
tags = ["green_circle"]
|
|
|
});
|
|
|
- EndPointCore.NotifyReload(true);
|
|
|
- //NotifyCore.AnPushNotify("上线", $"【淘宝联盟:{dnk}】cookie 上报更新");
|
|
|
+ _ = EndPointCore.NotifyReload(true);
|
|
|
+ //NotifyCore.QYWeixinPushNotifyAsync("上线", $"【淘宝联盟:{dnk}】cookie 上报更新");
|
|
|
return accountId;
|
|
|
}
|
|
|
|
|
|
@@ -450,7 +459,7 @@ namespace molilian.core
|
|
|
priority = NifyMessagePriority.high,
|
|
|
tags = ["red_circle"]
|
|
|
});
|
|
|
- NotifyCore.AnPushNotify("没账号", $"【淘客】没有匹配账号");
|
|
|
+ _ = NotifyCore.QYWeixinPushNotifyAsync("没账号", $"【淘客】没有匹配账号");
|
|
|
}
|
|
|
}
|
|
|
|