193 lines
8.2 KiB
C#
193 lines
8.2 KiB
C#
|
using Api.Framework.Enums;
|
|||
|
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;
|
|||
|
|
|||
|
namespace VideoFission
|
|||
|
{
|
|||
|
[Config(Name = "插件-视频裂变-配置")]
|
|||
|
public class Config
|
|||
|
{
|
|||
|
[Browsable(false)]
|
|||
|
public bool OnOff { get; set; }
|
|||
|
|
|||
|
#region 自定义电影
|
|||
|
[Browsable(false)]
|
|||
|
public bool Custom_OnOff { get; set; }
|
|||
|
|
|||
|
[Browsable(false)]
|
|||
|
public string Custom_SearchCMD { get; set; }
|
|||
|
|
|||
|
[Browsable(false)]
|
|||
|
public string Custom_SearchUrl { get; set; }
|
|||
|
|
|||
|
[Browsable(false)]
|
|||
|
public string Custom_SearchMess { get; set; }
|
|||
|
|
|||
|
[Browsable(false)]
|
|||
|
public DwzType Custom_SearchShortLinkWay { get; set; }
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 解析链接
|
|||
|
/// </summary>
|
|||
|
[Category("1)、解析链接设置"), DisplayName("01.解析链接"), DefaultValue(@"https://api.653520.top/vip/?url=
|
|||
|
https://vip.mpos.ren/v/?url=
|
|||
|
https://jx.000180.top/jx/?url=
|
|||
|
https://660e.com/?url=
|
|||
|
https://cdn.yangju.vip/k/?url="), Description(@"每一行一个视频解析地址,解析时随机获取"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string AnalysisLink { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 无限制开关
|
|||
|
/// </summary>
|
|||
|
[Category("2)、无限制设置"), DisplayName("01.无限制开关"), DefaultValue(SwitchType.开启), Description(@"用户无限制使用视频解析")]
|
|||
|
public SwitchType _Unlimited { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 新用户开关
|
|||
|
/// </summary>
|
|||
|
[Category("3)、新用户试用设置"), DisplayName("02.新用户试用开关"), DefaultValue(SwitchType.关闭), Description(@"开启本功能,新用户将能获得试用次数")]
|
|||
|
public SwitchType _Experience { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 新用户试用次数
|
|||
|
/// </summary>
|
|||
|
[Category("3)、新用户试用设置"), DisplayName("03.新用户试用次数"), DefaultValue(10), Description(@"新用户将能获得的试用次数")]
|
|||
|
public int ExperienceCount { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 搜索设置
|
|||
|
/// </summary>
|
|||
|
[Category("4)、搜索设置"), DisplayName("01.搜索指令"), DefaultValue(@"^看(?<电影名>.+?)(?:(?:\s+?)(?<集数>\d+?)?)?$"), Description(@"搜索电影名
|
|||
|
支持正则变量 电影名 与 集数
|
|||
|
指令:看电影名 集数
|
|||
|
注:集数为非必写值")]
|
|||
|
public string _SearchCMD { get; set; }
|
|||
|
|
|||
|
#region 提示语
|
|||
|
[Category("5)、其他设置"), DisplayName("01.短连接方式"), DefaultValue(DwzType.快站短网址)]
|
|||
|
public DwzType ShortLinkWay { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 视频解析成功
|
|||
|
/// </summary>
|
|||
|
[Category("6)、提示语设置"), DisplayName("01.视频解析成功提示语(无限制)"), DefaultValue(@"播放链接:[播放链接]"),
|
|||
|
Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[播放链接]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string LinkResolvedSuccessfully_Unlimited { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 视频解析成功
|
|||
|
/// </summary>
|
|||
|
[Category("6)、提示语设置"), DisplayName("02.视频解析成功提示语"), DefaultValue(@"[昵称]
|
|||
|
播放链接:[播放链接]
|
|||
|
剩余次数:[剩余次数]次"),
|
|||
|
Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[播放链接]、[剩余次数]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string LinkResolvedSuccessfully { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 视频搜索成功提示语
|
|||
|
/// </summary>
|
|||
|
[Category("6)、提示语设置"), DisplayName("03.视频搜索成功提示语"), DefaultValue(@"[电影图片]
|
|||
|
[昵称]
|
|||
|
电影名:[电影名]
|
|||
|
电影集数:[集数]
|
|||
|
播放链接:[播放链接]
|
|||
|
剩余次数:[剩余次数]次"),
|
|||
|
Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[电影图片]、[电影名]、[集数]、[播放链接]、[剩余次数]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string SearchResolvedSuccessfully { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 视频搜索失败提示语
|
|||
|
/// </summary>
|
|||
|
[Category("6)、提示语设置"), DisplayName("04.视频搜索失败提示语"), DefaultValue(@"[昵称]
|
|||
|
电影名:[电影名] 没有搜索到"),
|
|||
|
Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[电影名]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string SearchResolvedUnSuccessfully { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 搜索电视剧集数不存在提示语
|
|||
|
/// </summary>
|
|||
|
[Category("6)、提示语设置"), DisplayName("05.搜索电视剧集数不存在提示语"), DefaultValue(@"[昵称]
|
|||
|
电影名:[电影名]
|
|||
|
集数:[集数]
|
|||
|
没有搜索到"),
|
|||
|
Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[电影名]、[集数]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string SearchteleplayResolvedUnSuccessfully { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 解析次数不足
|
|||
|
/// </summary>
|
|||
|
[Category("6)、提示语设置"), DisplayName("06.解析次数不足提示语"), DefaultValue(@"[昵称]
|
|||
|
剩余次数:[剩余次数]次"),
|
|||
|
Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[剩余次数]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string PromptOfInsufficientBalance { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 解析次数增加成功
|
|||
|
/// </summary>
|
|||
|
[Category("6)、提示语设置"), DisplayName("07.解析次数增加成功提示语"), DefaultValue(@"[昵称]
|
|||
|
增加解析次数
|
|||
|
剩余次数:[剩余次数]次
|
|||
|
增加次数:[增加次数]次"),
|
|||
|
Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[剩余次数]、[增加次数]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
|||
|
public string ParsingTimesIncreaseSuccess { get; set; }
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
public Config()
|
|||
|
{
|
|||
|
this.Custom_OnOff = false;
|
|||
|
this.Custom_SearchCMD = @"^搜\s*?(?<电影名>.+?)$";
|
|||
|
this.Custom_SearchUrl = @"http://wtw.wwwuxsajccom.cn/so.php?wd=[电影名]";
|
|||
|
this.Custom_SearchMess = @"电影名:[电影名]
|
|||
|
点击链接查看:[电影网址]";
|
|||
|
this.Custom_SearchShortLinkWay = DwzType.快站短网址;
|
|||
|
|
|||
|
this.AnalysisLink = @"https://api.653520.top/vip/?url=
|
|||
|
https://vip.mpos.ren/v/?url=
|
|||
|
https://jx.000180.top/jx/?url=
|
|||
|
https://660e.com/?url=
|
|||
|
https://cdn.yangju.vip/k/?url=";
|
|||
|
this.ParsingTimesIncreaseSuccess = @"[昵称]
|
|||
|
增加解析次数
|
|||
|
剩余次数:[剩余次数]次
|
|||
|
增加次数:[增加次数]次";
|
|||
|
this._SearchCMD = @"^看(?<电影名>.+?)(?:\s+?)?(?<集数>\d+?)?$";
|
|||
|
this._Unlimited = SwitchType.开启;
|
|||
|
this._Experience = SwitchType.关闭;
|
|||
|
this.ExperienceCount = 10;
|
|||
|
|
|||
|
this.ShortLinkWay = DwzType.快站短网址;
|
|||
|
|
|||
|
this.LinkResolvedSuccessfully_Unlimited = @"播放链接:[播放链接]";
|
|||
|
this.LinkResolvedSuccessfully = @"[昵称]
|
|||
|
播放链接:[播放链接]
|
|||
|
剩余次数:[剩余次数]次";
|
|||
|
|
|||
|
this.SearchResolvedSuccessfully = @"[电影图片]
|
|||
|
[昵称]
|
|||
|
电影名:[电影名]
|
|||
|
电影集数:[集数]
|
|||
|
播放链接:[播放链接]
|
|||
|
剩余次数:[剩余次数]次";
|
|||
|
|
|||
|
this.SearchResolvedUnSuccessfully = @"[昵称]
|
|||
|
电影名:[电影名] 没有搜索到";
|
|||
|
|
|||
|
this.SearchteleplayResolvedUnSuccessfully = @"[昵称]
|
|||
|
电影名:[电影名]
|
|||
|
集数:[集数]
|
|||
|
没有搜索到";
|
|||
|
|
|||
|
this.PromptOfInsufficientBalance = @"[昵称]
|
|||
|
剩余次数:[剩余次数]次";
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|