216 lines
6.4 KiB
C#
216 lines
6.4 KiB
C#
using Api.Framework.SDK;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UI.Framework.Entitys;
|
|
using static Api.Framework.ApiClient;
|
|
using static CircleFriendsTools.Enums;
|
|
|
|
namespace CircleFriendsTools
|
|
{
|
|
/// <summary>
|
|
/// 微信内容模板
|
|
/// </summary>
|
|
public class ContentModel
|
|
{
|
|
/// <summary>
|
|
/// 模板名称
|
|
/// </summary>
|
|
public string ModelName { get; set; }
|
|
/// <summary>
|
|
/// 内容
|
|
/// </summary>
|
|
public string Content { get; set; }
|
|
}
|
|
|
|
|
|
[Config(Name = "插件-朋友圈工具-配置")]
|
|
public class Config
|
|
{
|
|
#region 转发功能
|
|
/// <summary>
|
|
/// 朋友圈监听账号
|
|
/// </summary>
|
|
public string MonitorCrowd { get; set; }
|
|
|
|
/// <summary>
|
|
/// 转发发送机器人集合
|
|
/// </summary>
|
|
public List<string> transpond_send_usernames { get; set; }
|
|
|
|
/// <summary>
|
|
/// 转发类型
|
|
/// </summary>
|
|
public TransmitStyleType TransmitStyle { get; set; }
|
|
|
|
/// <summary>
|
|
/// 朋友圈地址内容
|
|
/// </summary>
|
|
public string LocationContent { get; set; }
|
|
|
|
/// <summary>
|
|
/// 朋友圈poi采集用户账号
|
|
/// </summary>
|
|
public string GatherPoiCrowd { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自定义web接口
|
|
/// </summary>
|
|
public string CustomWebApi { get; set; }
|
|
|
|
/// <summary>
|
|
/// 监听触发时长 分钟
|
|
/// </summary>
|
|
public int MonitorIntervalTime { get; set; }
|
|
|
|
///// <summary>
|
|
///// 自定义定时任务采集接口
|
|
///// </summary>
|
|
//public string CustomTimedTaskAcquisitionApi { get; set; }
|
|
|
|
///// <summary>
|
|
///// 监听触发时长 分钟
|
|
///// </summary>
|
|
//public int CustomTimedTaskAcquisitionMonitorIntervalTime { get; set; }
|
|
|
|
///// <summary>
|
|
///// 自定义定时任务采集发送机器人账号
|
|
///// </summary>
|
|
//public List<string> CustomTimedTaskAcquisitionSendRobotNames { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自动转连
|
|
/// </summary>
|
|
public bool AutoTurn { get; set; }
|
|
|
|
/// <summary>
|
|
/// 执着转连(转发朋友圈内容以及评语,用户淘口令转连失败,该值为True时,依然追加评论内容)
|
|
/// </summary>
|
|
public bool Turn_Obstinate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 转链自定义标题
|
|
/// </summary>
|
|
public string TurnTitle { get; set; }
|
|
|
|
/// <summary>
|
|
/// 二维码模板
|
|
/// </summary>
|
|
public QrImageType qrImage { get; set; }
|
|
|
|
/// <summary>
|
|
/// 监听所发送的朋友圈消息创建时间戳(记录)
|
|
/// </summary>
|
|
public string MonitorInfoHistoryTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自定义web接口.返回文本的MD5(用于记录是个上次发送的内容一致)
|
|
/// </summary>
|
|
public string CustomWebApiTextMD5 { get; set; }
|
|
|
|
/// <summary>
|
|
/// 接口访问时间 分
|
|
/// </summary>
|
|
public int CustomWebApiIntervalTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 网络图片的链接
|
|
/// </summary>
|
|
public string NetworkUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自动点赞
|
|
/// </summary>
|
|
public bool AutoPraise { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自动点赞时间间隔 分钟
|
|
/// </summary>
|
|
public int AutoPraiseInterval { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region 一键发送
|
|
/// <summary>
|
|
/// 推广位pid
|
|
/// </summary>
|
|
public string adzone_pid { get; set; }
|
|
/// <summary>
|
|
/// 推广位pid名称
|
|
/// </summary>
|
|
public string adzone_pid_cps_name { get; set; }
|
|
/// <summary>
|
|
/// 推广位名称
|
|
/// </summary>
|
|
public string adzone_name { get; set; }
|
|
/// <summary>
|
|
/// 发送人员集合
|
|
/// </summary>
|
|
public List<string> send_usernames { get; set; }
|
|
/// <summary>
|
|
/// 手动发送人员集合
|
|
/// </summary>
|
|
public List<string> manually_send_usernames { get; set; }
|
|
/// <summary>
|
|
/// 发送模板
|
|
/// </summary>
|
|
public List<ContentModel> send_templates { get; set; }
|
|
|
|
/// <summary>
|
|
/// 记录当天发送过的商品
|
|
/// </summary>
|
|
public Dictionary<string, List<string>> recordSendGoods { get; set; }
|
|
|
|
/// <summary>
|
|
/// 转发朋友圈自定义追加评语内容
|
|
/// </summary>
|
|
public string AppendComment { get; set; }
|
|
|
|
#endregion
|
|
|
|
public Config()
|
|
{
|
|
this.GatherPoiCrowd = string.Empty;
|
|
this.MonitorCrowd = string.Empty;
|
|
this.qrImage = QrImageType.模板B;
|
|
|
|
#region 转发功能
|
|
this.TransmitStyle = TransmitStyleType.原文及评论;
|
|
//this.transpond_send_usernames = new List<string>();
|
|
this.LocationContent = string.Empty;
|
|
this.AutoPraise = true;
|
|
this.AutoTurn = false;
|
|
this.Turn_Obstinate = false;
|
|
//this.TurnTitle = string.Empty;
|
|
this.AutoPraiseInterval = 30;
|
|
this.MonitorIntervalTime = 20;
|
|
//this.CustomTimedTaskAcquisitionMonitorIntervalTime = 5;
|
|
this.CustomWebApiIntervalTime = 10;
|
|
//this.CustomTimedTaskAcquisitionSendRobotNames = new List<string>();
|
|
this.AppendComment = string.Empty;
|
|
#endregion
|
|
|
|
#region 一键发送
|
|
this.adzone_pid = string.Empty;
|
|
this.adzone_pid_cps_name = string.Empty;
|
|
this.adzone_name = string.Empty;
|
|
this.send_usernames = new List<string>();
|
|
this.manually_send_usernames = new List<string>();
|
|
this.send_templates = new List<ContentModel>() { new ContentModel() { ModelName = "默认模板", Content = @"╭┈┈┈┄┈┈┈┈┈╮
|
|
爆款榜单
|
|
╰┈┈┈┈┈┈┈┈┈╯
|
|
识别二维码复制口令下单,手慢无[茶] [茶]
|
|
喜爱不在等待,全网最优惠价格!
|
|
好产品多多看上的速度下手!" } };
|
|
#endregion
|
|
|
|
recordSendGoods = new Dictionary<string, List<string>>();
|
|
|
|
}
|
|
|
|
}
|
|
}
|