修正朋友圈工具机器人先勾选丢失
This commit is contained in:
parent
d23ad73d71
commit
50dac2d4a4
|
@ -198,7 +198,7 @@ namespace CircleFriendsTools
|
|||
//朋友圈检测
|
||||
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)
|
||||
{
|
||||
IsRun = true;
|
||||
|
|
|
@ -56,6 +56,8 @@ namespace Weixin.CircleTools
|
|||
{
|
||||
try
|
||||
{
|
||||
EventClient.OnEvent("", $"数量:{(data == null ? 0 : data.Count)}");
|
||||
|
||||
checkedComboBoxEdit_ChatType.Properties.Items.Clear();
|
||||
var clients = Chat.Framework.ChatClient.WXClient;
|
||||
foreach (var item in clients.Values)
|
||||
|
@ -120,8 +122,12 @@ namespace Weixin.CircleTools
|
|||
taskinfo.task_time = dateTimePicker1.Value.ToString("HH:mm");
|
||||
taskinfo.task_sendtext = textBox1.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;
|
||||
if (taskinfo.id == 0)
|
||||
|
|
Loading…
Reference in New Issue