修正朋友圈工具机器人先勾选丢失

This commit is contained in:
老道 2022-09-23 10:25:48 +08:00
parent d23ad73d71
commit 50dac2d4a4
2 changed files with 9 additions and 3 deletions

View File

@ -198,7 +198,7 @@ namespace CircleFriendsTools
//朋友圈检测 //朋友圈检测
if (!string.IsNullOrWhiteSpace(Class1.Config.MonitorCrowd) && ((state != null && state.ToString() == "立即检测") || count % (Class1.Config.MonitorIntervalTime * 60) == 0)) if (!string.IsNullOrWhiteSpace(Class1.Config.MonitorCrowd) && ((state != null && state.ToString() == "立即检测") || count % (Class1.Config.MonitorIntervalTime * 60) == 0))
{ {
EventClient.OnEvent(this, $"【朋友圈工具】 => 定时执行朋友圈跟发,状态:{(IsRun ? "" : "")}"); //EventClient.OnEvent(this, $"【朋友圈工具】 => 定时执行朋友圈跟发,状态:{(IsRun ? "历史任务还在执行中" : "历史任务未执行")}");
if (!IsRun) if (!IsRun)
{ {
IsRun = true; IsRun = true;

View File

@ -56,6 +56,8 @@ namespace Weixin.CircleTools
{ {
try try
{ {
EventClient.OnEvent("", $"数量:{(data == null ? 0 : data.Count)}");
checkedComboBoxEdit_ChatType.Properties.Items.Clear(); checkedComboBoxEdit_ChatType.Properties.Items.Clear();
var clients = Chat.Framework.ChatClient.WXClient; var clients = Chat.Framework.ChatClient.WXClient;
foreach (var item in clients.Values) foreach (var item in clients.Values)
@ -120,8 +122,12 @@ namespace Weixin.CircleTools
taskinfo.task_time = dateTimePicker1.Value.ToString("HH:mm"); taskinfo.task_time = dateTimePicker1.Value.ToString("HH:mm");
taskinfo.task_sendtext = textBox1.Text; taskinfo.task_sendtext = textBox1.Text;
taskinfo.task_comment = textBox2.Text; taskinfo.task_comment = textBox2.Text;
taskinfo.robotnames = checkedComboBoxEdit_ChatType.EditValue.ToString(); //taskinfo.robotnames = checkedComboBoxEdit_ChatType.EditValue.ToString();
var robotnames = checkedComboBoxEdit_ChatType.Properties.Items.Where(f => f.CheckState == CheckState.Checked).Select(f => f.Value.ToString()).ToList();
taskinfo.robotnames = string.Join(",", robotnames);
EventClient.OnEvent("", $"保存数据:{taskinfo.robotnames}");
var sql = string.Empty; var sql = string.Empty;
if (taskinfo.id == 0) if (taskinfo.id == 0)