old_flsystem/类库/Api.Framework/Config/SystemConfig.cs

1196 lines
48 KiB
C#
Raw Permalink Normal View History

2022-09-20 03:10:29 +00:00
using Api.Framework.Enums;
using Api.Framework.Model;
using Api.Framework.SDK;
using Api.Framework.Tools;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing.Design;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms.Design;
using UI.Framework.Entitys;
namespace Api.Framework.Config
{
/// <summary>
/// 系统基础设置
/// </summary>
[Config(Name = "系统.基础配置")]
public class SystemConfig
{
#region .
/// <summary>
/// 换算比例
/// </summary>
[
Category("1、积分设置"), DisplayName("01.换算比例"), DefaultValue(1), ReadOnly(true),
Description("一元人民币等于多少积分,例如:设置100,表示1元人民币等于100积分。")
]
public int PointRitio { get; set; }
/// <summary>
/// 积分名称
/// </summary>
[
Category("1、积分设置"), DisplayName("02.积分名称"), DefaultValue("元"),
Description("单位名称,一般取名为:元、金币、积分 等。")
]
public string PointName { get; set; }
/// <summary>
/// 提成类型
/// </summary>
[
Category("1、积分设置"), DisplayName("03.提成类型"), DefaultValue(AwardDepotType.),
Description("例如100元商品分出佣金为50元,扣除分出佣金->代理根据比例从50里抽取,剩余的金额归客户. 不扣除分出佣金->客户拿50元,代理在从50里面再次抽取自己的百分比.")
]
public AwardDepotType AwardDepot { get; set; }
/// <summary>
/// 一级提成
/// </summary>
[
Category("1、积分设置"), DisplayName("04.一级提成"), DefaultValue(20),
Description("A推荐B加机器人,B网购,A可以获得多少佣金!")
]
public int AwardOne { get; set; }
/// <summary>
/// 二级提成
/// </summary>
[
Category("1、积分设置"), DisplayName("05.二级提成"), DefaultValue(10),
Description("A推荐B加机器人,B又推荐C加机器人,C网购,A可以获得多少佣金!")
]
public int AwardTwo { get; set; }
/// <summary>
/// 三级提成
/// </summary>
[
Category("1、积分设置"), DisplayName("05.三级提成"), DefaultValue(10),
Description("A推荐B加机器人,B又推荐C加机器人,C再推荐D加机器人,D网购,A可以获得多少佣金!")
]
public int AwardThree { get; set; }
/// <summary>
/// 群主奖励
/// </summary>
[
Category("1、积分设置"), DisplayName("06.负责人提成"), DefaultValue(5),
Description("一般指做群的用户,会为群分配一个负责人,该群内所有产出佣金. 负责人都可以从“分出佣金”内,拿指定比例!")
]
public int AwardCreator { get; set; }
/// <summary>
/// 淘宝0元补助
/// </summary>
[
Category("1、积分设置"), DisplayName("07.用户所得佣金为0补助 - 淘宝"), DefaultValue(SwitchType.),
Description("商品计算用户所得佣金为0时,开启改功能将补助0.01给用户!")
]
public SwitchType SubsidyTb { get; set; }
/// <summary>
/// 拼多多0元补助
/// </summary>
[
Category("1、积分设置"), DisplayName("08.用户所得佣金为0补助 - 拼多多"), DefaultValue(SwitchType.),
Description("商品计算用户所得佣金为0时,开启改功能将补助0.01给用户!")
]
public SwitchType SubsidyPdd { get; set; }
/// <summary>
/// 京东0元补助
/// </summary>
[
Category("1、积分设置"), DisplayName("09.用户所得佣金为0补助 - 京东"), DefaultValue(SwitchType.),
Description("商品计算用户所得佣金为0时,开启改功能将补助0.01给用户!")
]
public SwitchType SubsidyJd { get; set; }
#endregion
#region .
/// <summary>
/// 淘口令开始符号
/// </summary>
[
Category("2、防封设置"), DisplayName("01.淘口令前符号"), DefaultValue("《"),
Description("¥xxxxx¥,一般淘口令为这种格式,我们会把第一个¥替换,用竖线可以分割多个符号,随机选用!")
]
public string TklStr_First { get; set; }
/// <summary>
/// 淘口令末尾符号
/// </summary>
[
Category("2、防封设置"), DisplayName("02.淘口令后符号"), DefaultValue("《"),
Description("¥xxxxx¥,一般淘口令为这种格式,我们会把第二个¥替换,用竖线可以分割多个符号,随机选用!")
]
public string TKLStr_End { get; set; }
private int _TGWRandomCount;
/// <summary>
/// 淘宝随机推广位切换频率
/// </summary>
[
Category("2、防封设置"), DisplayName("03.淘宝随机推广位切换频率"), DefaultValue(50),
Description("单位:次,推广位每使用N次以后切换下一个,防止推广位被举报.")
]
public int TGWRandomCount
{
get { return _TGWRandomCount; }
set
{
if (value < 1)
{
_TGWRandomCount = 1;
//throw new Exception("定时时间应大于等于10");
}
else
_TGWRandomCount = value;
}
}
/// <summary>
/// 精准查询链接过期时间 - 分钟
/// </summary>
[
Category("2、防封设置"), DisplayName("04.精准查询链接有效期"), DefaultValue(30),
Description("单位:分钟,防止链接被举报.")
]
public int QueryItemExpireTime { get; set; }
/// <summary>
/// 自定义域名-淘口令
/// </summary>
[
Category("2、防封设置"), DisplayName("05.自定义域名-淘口令"), DefaultValue(""),
Description("不填写调用默认,由于微信封域名,这里是打开淘口令的中转页,便于复制淘口令!变量:[淘口令]、[图片]、[地址]、[图片地址]\r\n例如:http://xxxxx.xxx/item.html?taowords=[淘口令]&pic=[图片]&url=[地址]")
]
public string URLTbTkl { get; set; }
/// <summary>
/// 自定义域名中间页屏蔽通知
/// </summary>
[
Category("2、防封设置"), DisplayName("06.自定义域名中间页屏蔽通知"), DefaultValue(SwitchType.),
Description("自定义中间页域名被微信屏蔽通知开关")
]
public SwitchType CheckUrlSwitch { get; set; }
/// <summary>
/// 自定义域名-产品库
/// </summary>
[
Category("2、防封设置"), DisplayName("07.自定义域名-产品库"), DefaultValue(""),
Description("不填写调用默认,由于微信封域名,这里是查找商品的网站! 变量:[关键词]、[推广位]\r\n例如:http://xxxx.com/serch.html?key=[关键词]&pid=[推广位]")
]
public string URLTbCms { get; set; }
/// <summary>
/// 自定义域名-订单详情
/// </summary>
[
Category("2、防封设置"), DisplayName("08.自定义域名-订单详情"), DefaultValue(""),
Description("不填写调用默认,由于微信封域名,这里是订单详情页的网站! 变量:[key]\r\n例如:http://xxxx/aliorder.html?key=[key]")
]
public string URLTbDdxq { get; set; }
/// <summary>
/// 自定义域名-短网址
/// </summary>
[
Category("2、防封设置"), DisplayName("09.自定义域名-短网址"), DefaultValue(""),
Description("请解析域名到 119.28.55.17 免备案然后填写网址例如http://www.baidu.com也可以联系客服获取代码自己放自己服务器或块站")
]
public string URLDwz { get; set; }
#endregion
/// <summary>
/// 官方中间页模式
/// </summary>
[
Category("3、官方中间页模式设置"), DisplayName("01.官方中间页模式"), DefaultValue(ComposeType.),
Description("官方中间页模式选择")
]
public ComposeType ZjyComposeType { get; set; } = ComposeType.;
#region .
/// <summary>
/// 邮件服务器
/// </summary>
[
Category("4、邮件设置"), DisplayName("01.服务器"), DefaultValue("smtp.qq.com"),
Description("常用邮件:腾讯(smtp.qq.com)、新浪(smtp.sina.com)、搜狐(smtp.sohu.com)....")
]
public string SMTP_Host { get; set; }
/// <summary>
/// 邮件端口号
/// </summary>
[
Category("4、邮件设置"), DisplayName("02.端口号"), DefaultValue(587),
Description("常用端口:25(大部分采用)、由于25很多服务器封禁了该端口可以尝试465、587仍无效请检查防火墙是否未允许使用此端口")
]
public int SMTP_Port { get; set; }
/// <summary>
/// 邮件用户名
/// </summary>
[
Category("4、邮件设置"), DisplayName("03.用户名"), DefaultValue(""),
Description("用于发信的邮箱名,例如:xxxx@qq.com")
]
public string SMTP_User { get; set; }
/// <summary>
/// 邮件授权密码
/// </summary>
[
Category("4、邮件设置"), DisplayName("04.授权密码"), DefaultValue(""),
Description("登录密码或授权码,为了安全考虑很多邮箱已经采用了授权码!")
]
public string SMTP_Pass { get; set; }
/// <summary>
/// SSL加密传输
/// </summary>
[
Category("4、邮件设置"), DisplayName("05.SSL加密传输"), DefaultValue(SwitchType.),
Description("加密传输防止泄露信息,部分邮件服务器必须强制SSL通信,建议开启!")
]
public SwitchType SMTP_SSL { get; set; }
#endregion
#region
/// <summary>
/// 消息防止频繁休眠间隔
/// </summary>
private int _mess_frequent_sleep_time { get; set; }
/// <summary>
/// 消息发送间隔
/// </summary>
[
Category("5、系统设置"), DisplayName("01.消息防止频繁休眠间隔"), DefaultValue(5),
Description("机器人消息队列10秒内推送10条消息的休眠时间. 例如十秒内发送的消息量超过10条,休眠5(设置值)秒后继续发送未发送的信息.值为0时,该功能无效 单位:秒")
]
public int mess_frequent_sleep_time
{
get { return _mess_frequent_sleep_time; }
set
{
if (value < 0)
_mess_frequent_sleep_time = 5;
else
_mess_frequent_sleep_time = value;
}
}
/// <summary>
/// 订单冻结依据
/// </summary>
[
Category("5、系统设置"), DisplayName("02.订单冻结依据"), DefaultValue(FreezingConditionType.),
Description("例如100元商品总佣金为10元,客户所得是5元.商品总佣金->冻结时间将以10为条件进行计算冻结时间. 客户所得佣金->冻结时间将以5为条件进行计算冻结时间.")
]
public FreezingConditionType FreezingCondition { get; set; }
private int _timer_clear_memory { get; set; }
/// <summary>
/// 定时-清理内存
/// </summary>
[
Category("5、系统设置"), DisplayName("03.定时-清理内存"), DefaultValue(120),
Description("单位:秒、定时清理系统内存(非硬盘)无引用对象,通过Win32API,GC回收,大幅度降低占用内存!")
]
public int timer_clear_memory
{
get { return _timer_clear_memory; }
set
{
if (value < 10)
{
_timer_clear_memory = 10;
//throw new Exception("定时时间应大于等于10");
}
else
_timer_clear_memory = value;
}
}
private int _timer_down_alimama { get; set; }
/// <summary>
/// 定时-下载淘宝订单
/// </summary>
[
Category("5、系统设置"), DisplayName("04.定时-下载淘宝订单"), DefaultValue(40),
Description("单位:秒、定时同步循环下载阿里妈妈订单,取值范围:10-1200")
]
public int timer_down_alimama
{
get { return _timer_down_alimama; }
set
{
if (value < 10)
{
_timer_down_alimama = 10;
//throw new Exception("定时时间应在10-1200之间");
}
else if (value > 1200)
_timer_down_alimama = 1200;
else
_timer_down_alimama = value;
}
}
private int _time_down_pinduoduo { get; set; }
/// <summary>
/// 定时-下载拼多多订单
/// </summary>
[
Category("5、系统设置"), DisplayName("05.定时-下载拼多多订单"), DefaultValue(40),
Description("单位:秒、定时循环下载拼多多订单,取值范围:10-1200")
]
public int time_down_pinduoduo
{
get { return _time_down_pinduoduo; }
set
{
if (value < 10)
{
_time_down_pinduoduo = 10;
//throw new Exception("定时时间应在10-1200之间");
}
else if (value > 1200)
_time_down_pinduoduo = 1200;
else
_time_down_pinduoduo = value;
}
}
private int _time_down_jingdong { get; set; }
/// <summary>
/// 定时-下载京东订单
/// </summary>
[
Category("5、系统设置"), DisplayName("06.定时-下载京东订单"), DefaultValue(600),
Description("单位:秒、定时循环下载京东订单,取值范围:60-1200")
]
public int time_down_jingdong
{
get { return _time_down_jingdong; }
set
{
if (value < 30)
{
_time_down_jingdong = 30;
//throw new Exception("定时时间应在20-1200之间");
}
else if (value > 1200)
_time_down_jingdong = 1200;
else
_time_down_jingdong = value;
//_time_down_jingdong = 600;
}
}
private int _time_down_weipinhui { get; set; }
/// <summary>
/// 定时-下载唯品会订单
/// </summary>
[
Category("5、系统设置"), DisplayName("07.定时-下载唯品会订单"), DefaultValue(60),
Description("单位:秒、定时循环下载唯品会订单,取值范围:10-1200")
]
public int time_down_weipinhui
{
get { return _time_down_weipinhui; }
set
{
if (value < 10)
{
_time_down_weipinhui = 10;
//throw new Exception("定时时间应在10-1200之间");
}
else if (value > 1200)
_time_down_weipinhui = 1200;
else
_time_down_weipinhui = value;
}
}
private int _time_down_douyin { get; set; }
/// <summary>
/// 定时-下载抖音订单
/// </summary>
[
Category("5、系统设置"), DisplayName("08.定时-下载抖音订单"), DefaultValue(60),
Description("单位:秒、定时循环下载抖音订单,取值范围:60-1200")
]
public int time_down_douyin
{
get { return _time_down_douyin; }
set
{
if (value < 60)
{
_time_down_douyin = 60;
//throw new Exception("定时时间应在30-1200之间");
}
else if (value > 1200)
_time_down_douyin = 1200;
else
_time_down_douyin = value;
}
}
private int _time_down_suning { get; set; }
/// <summary>
/// 定时-下载苏宁订单
/// </summary>
[
Category("5、系统设置"), DisplayName("08.定时-下载苏宁订单"), DefaultValue(60),
Description("单位:秒、定时循环下载苏宁订单,取值范围:60-1200")
]
public int time_down_suning
{
get { return _time_down_suning; }
set
{
if (value < 60)
{
_time_down_suning = 60;
//throw new Exception("定时时间应在30-1200之间");
}
else if (value > 1200)
_time_down_suning = 1200;
else
_time_down_suning = value;
}
}
private int _time_down_kuaishou { get; set; }
/// <summary>
/// 定时-下载快手订单
/// </summary>
[
Category("5、系统设置"), DisplayName("09.定时-下载快手订单"), DefaultValue(300),
Description("单位:秒、定时循环下载快手订单,取值范围:60-1200")
]
public int time_down_kuaishou
{
get { return _time_down_kuaishou; }
set
{
if (value < 60)
{
_time_down_kuaishou = 60;
//throw new Exception("定时时间应在30-1200之间");
}
else if (value > 1200)
_time_down_kuaishou = 1200;
else
_time_down_kuaishou = value;
//_time_down_jingdong = 300;
}
}
/// <summary>
/// 管理员邮箱
/// </summary>
[
Category("5、系统设置"), DisplayName("10.管理员邮箱"), DefaultValue(""),
Description("系统有紧急事件,会通知管理员!")
]
public string account_admin_email { get; set; }
/// <summary>
/// 自定义短网址
/// </summary>
[
Category("5、系统设置"), DisplayName("11.自定义短网址"), DefaultValue(DwzType.),
Description("如果网址过长,会被自动缩短!")
]
public DwzType dwz_type { get; set; }
/// <summary>
/// 自定义短网址百度付费Token
/// </summary>
[
Category("5、系统设置"), DisplayName("12.自定义短网址百度付费Token"), PasswordPropertyText(true), DefaultValue(""),
Description("百度短网址是付费接口需要用户自行充值百度短网址官网https://dwz.cn ,把Token填写到此处!")
]
public string DwzToken { get; set; }
/// <summary>
/// 系统异常提示语
/// </summary>
[
Category("5、系统设置"), DisplayName("13.系统异常提示语"), DefaultValue("对不起查询失败,当前是使用高峰期,请稍后重试! 给您造成不便敬请谅解!"),
Description("应用在处理过程中,如果出现错误,将对客户提示展示这段话!")
]
public string msg_error { get; set; }
/// <summary>
/// 微信辅助客户输入
/// </summary>
/// <summary>
/// 短网址
/// </summary>
[
Category("5、系统设置"), DisplayName("14.微信辅助客户输入"), DefaultValue(SwitchType.),
Description("来源替换,例如:自己用手机给客户发消息,机器人会自动转换为客户发过来的消息,方便替客户查余额、辅助客户使用!")
]
public SwitchType msg_wx_convertswich { get; set; }
/// <summary>
/// 淘宝订单自动绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("15.淘宝订单自动绑定"), DefaultValue(SwitchType.),
Description("系统会根据最近客户和您的聊天记录自动判断,如果多人查询同一个宝贝将不会绑定!")
]
public SwitchType order_alimama_bind { get; set; }
/// <summary>
/// 淘宝订单下载依据
/// </summary>
[
Category("5、系统设置"), DisplayName("16.淘宝订单下载依据"), DefaultValue(DownAdzoneType.广),
Description(@"系统淘宝订单下载依据!
广17广
广17广
17")
]
public DownAdzoneType order_alimama_down_type { get; set; }
/// <summary>
/// 淘宝订单[不]下载推广位
/// </summary>
[
Category("5、系统设置"), DisplayName("17.淘宝订单[不]下载推广位"), DefaultValue(""),
Description(@"此处设置的推广位,受制于16设置项的设置.
16,[],"",""")
]
public string order_alimama_not_download_pid { get; set; }
/// <summary>
/// 只下载使用中推广位淘宝订单
/// </summary>
[
Category("5、系统设置"), DisplayName("18.只下载使用中推广位淘宝订单"), DefaultValue(SwitchType.),
Description("开启状态,系统将通过插件中设置的推广位进行订单下载,联盟其他推广位订单将不下载,5-16设置项将无效")
]
public SwitchType order_alimama_download_set_pids { get; set; } = SwitchType.;
/// <summary>
/// 淘宝订单尾号自动采集
/// </summary>
[
Category("5、系统设置"), DisplayName("19.淘宝订单尾号自动采集"), DefaultValue(SwitchType.),
Description("订单自动绑定与尾号自动采集同时开启后,才会自动采集用户的订单尾号")
]
public SwitchType order_alimama_last_auto_capture { get; set; }
/// <summary>
/// 淘宝订单尾号识别绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("20.淘宝订单尾号识别绑定"), DefaultValue(SwitchType.),
Description("")
]
public SwitchType order_alimama_last_auto_bind { get; set; }
/// <summary>
/// 淘宝同店订单绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("21.淘宝同店订单绑定"), DefaultValue(SwitchType.),
Description("")
]
public SwitchType order_alimama_same_shop_bind { get; set; } = SwitchType.;
/// <summary>
/// 拼多多订单自动绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("22.拼多多订单自动绑定"), DefaultValue(SwitchType.),
Description("精准绑定、内置黑科技参数,可以完美实现精准客户识别!")
]
public SwitchType order_pinduoduo_bind { get; set; }
/// <summary>
/// 拼多多订单下载依据
/// </summary>
[
Category("5、系统设置"), DisplayName("23.拼多多订单下载依据"), DefaultValue(DownAdzoneType.广),
Description(@"系统拼多多订单下载依据!
广24广
广24广
23")
]
public DownAdzoneType order_pinduoduo_down_type { get; set; }
/// <summary>
/// 拼多多订单[不]下载推广位
/// </summary>
[
Category("5、系统设置"), DisplayName("24.拼多多订单[不]下载推广位"), DefaultValue(""),
Description(@"此处设置的推广位,受制于23设置项的设置.
23, [], "", """)
]
public string order_pinduoduo_not_download_pid { get; set; }
/// <summary>
/// 只下载使用中推广位拼多多订单
/// </summary>
[
Category("5、系统设置"), DisplayName("25.只下载使用中推广位拼多多订单"), DefaultValue(SwitchType.),
Description("开启状态,系统将通过插件中设置的推广位进行订单下载,联盟其他推广位订单将不下载,5-23设置项将无效")
]
public SwitchType order_pinduoduo_download_set_pids { get; set; } = SwitchType.;
/// <summary>
/// 京东订单自动绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("26.京东订单自动绑定"), DefaultValue(SwitchType.),
Description("精准绑定、内置黑科技参数,可以完美实现精准客户识别!")
]
public SwitchType order_jingdong_bind { get; set; }
/// <summary>
/// 京东订单下载依据
/// </summary>
[
Category("5、系统设置"), DisplayName("27.京东订单下载依据"), DefaultValue(DownAdzoneType.广),
Description(@"系统京东订单下载依据!
广28广
广28广
27")
]
public DownAdzoneType order_jingdong_down_type { get; set; }
/// <summary>
/// 京东订单[不]下载推广位
/// </summary>
[
Category("5、系统设置"), DisplayName("28.京东订单[不]下载推广位"), DefaultValue(""),
Description(@"此处设置的推广位,受制于27设置项的设置.
27, [], "", """)
]
public string order_jingdong_not_download_pid { get; set; }
/// <summary>
/// 只下载使用中推广位京东订单
/// </summary>
[
Category("5、系统设置"), DisplayName("29.只下载使用中推广位京东订单"), DefaultValue(SwitchType.),
Description("开启状态,系统将通过插件中设置的推广位进行订单下载,联盟其他推广位订单将不下载,5-27设置项将无效")
]
public SwitchType order_jingdong_download_set_pids { get; set; } = SwitchType.;
/// <summary>
/// 唯品会订单自动绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("30.唯品会订单自动绑定"), DefaultValue(SwitchType.),
Description("精准绑定、内置黑科技参数,可以完美实现精准客户识别!")
]
public SwitchType order_weipinhui_bind { get; set; }
/// <summary>
/// 唯品会订单下载依据
/// </summary>
[
Category("5、系统设置"), DisplayName("31.唯品会订单下载依据"), DefaultValue(DownAdzoneType.广),
Description(@"系统唯品会订单下载依据!
广32广
广32广
31")
]
public DownAdzoneType order_weipinhui_down_type { get; set; }
/// <summary>
/// 唯品会订单[不]下载推广位
/// </summary>
[
Category("5、系统设置"), DisplayName("32.唯品会订单[不]下载推广位"), DefaultValue(""),
Description(@"此处设置的推广位,受制于31设置项的设置.
31, [], "", """)
]
public string order_weipinhui_not_download_pid { get; set; }
/// <summary>
/// 只下载使用中推广位唯品会订单
/// </summary>
[
Category("5、系统设置"), DisplayName("33.只下载使用中推广位唯品会订单"), DefaultValue(SwitchType.),
Description("开启状态,系统将通过插件中设置的推广位进行订单下载,联盟其他推广位订单将不下载,5-31设置项将无效")
]
public SwitchType order_weipinhui_download_set_pids { get; set; } = SwitchType.;
/// <summary>
/// 抖音订单自动绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("34.抖音订单自动绑定"), DefaultValue(SwitchType.),
Description("系统会根据最近客户和您的聊天记录自动判断,如果多人查询同一个宝贝将不会绑定!")
]
public SwitchType order_douyin_bind { get; set; } = SwitchType.;
// /// <summary>
// /// 抖音订单下载依据
// /// </summary>
// [
// Category("5、系统设置"), DisplayName("34.抖音订单下载依据"), DefaultValue(DownAdzoneType.不下载推广位),
// Description(@"系统抖音订单下载依据!
//不下载推广位以35设置项为准将不下载设置的推广位对应的订单
//只下载推广位以35设置项为准将只下载设置的推广位对应的订单
//注35设置项为空时将下载全部")
// ]
// public DownAdzoneType order_douyin_down_type { get; set; } = DownAdzoneType.不下载推广位;
// /// <summary>
// /// 抖音订单[不]下载推广位
// /// </summary>
// [
// Category("5、系统设置"), DisplayName("35.抖音订单[不]下载推广位"), DefaultValue(""),
// Description(@"此处设置的推广位,受制于34设置项的设置.
//34设置项的设置, 将决定[不]下载对应的订单, 用英文逗号"", ""分隔!")
// ]
// public string order_douyin_not_download_pid { get; set; } = string.Empty;
// /// <summary>
// /// 只下载使用中推广位抖音订单
// /// </summary>
// [
//Category("5、系统设置"), DisplayName("36.只下载使用中推广位抖音订单"), DefaultValue(SwitchType.关闭),
//Description("开启状态,系统将通过插件中设置的推广位进行订单下载,联盟其他推广位订单将不下载,5-34设置项将无效")
//]
// public SwitchType order_douyin_download_set_pids { get; set; } = SwitchType.关闭;
//-----------------------
/// <summary>
/// 苏宁订单自动绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("37.苏宁订单自动绑定"), DefaultValue(SwitchType.),
Description("精准绑定、内置黑科技参数,可以完美实现精准客户识别!")
]
public SwitchType order_suning_bind { get; set; } = SwitchType.;
/// <summary>
/// 苏宁订单下载依据
/// </summary>
[
Category("5、系统设置"), DisplayName("38.苏宁订单下载依据"), DefaultValue(DownAdzoneType.广),
Description(@"系统苏宁订单下载依据!
广39广
广39广
39")
]
public DownAdzoneType order_suning_down_type { get; set; } = DownAdzoneType.广;
/// <summary>
/// 苏宁订单[不]下载推广位
/// </summary>
[
Category("5、系统设置"), DisplayName("39.苏宁订单[不]下载推广位"), DefaultValue(""),
Description(@"此处设置的推广位,受制于38设置项的设置.
38, [], "", """)
]
public string order_suning_not_download_pid { get; set; } = string.Empty;
/// <summary>
/// 只下载使用中推广位苏宁订单
/// </summary>
[
Category("5、系统设置"), DisplayName("40.只下载使用中推广位苏宁订单"), DefaultValue(SwitchType.),
Description("开启状态,系统将通过插件中设置的推广位进行订单下载,联盟其他推广位订单将不下载,5-38设置项将无效")
]
public SwitchType order_suning_download_set_pids { get; set; } = SwitchType.;
/// <summary>
/// 快手订单自动绑定
/// </summary>
[
Category("5、系统设置"), DisplayName("41.快手订单自动绑定"), DefaultValue(SwitchType.),
Description("精准绑定、内置黑科技参数,可以完美实现精准客户识别!")
]
public SwitchType order_kuaishou_bind { get; set; } = SwitchType.;
/// <summary>
/// 快手订单下载依据
/// </summary>
[
Category("5、系统设置"), DisplayName("42.快手订单下载依据"), DefaultValue(DownAdzoneType.广),
Description(@"系统快手订单下载依据!
广43广
广43广
43")
]
public DownAdzoneType order_kuaishou_down_type { get; set; } = DownAdzoneType.广;
/// <summary>
/// 快手订单[不]下载推广位
/// </summary>
[
Category("5、系统设置"), DisplayName("43.快手订单[不]下载推广位"), DefaultValue(""),
Description(@"此处设置的推广位,受制于42设置项的设置.
42, [], "", """)
]
public string order_kuaishou_not_download_pid { get; set; } = string.Empty;
/// <summary>
/// 只下载使用中推广位快手订单
/// </summary>
[
Category("5、系统设置"), DisplayName("44.只下载使用中推广位快手订单"), DefaultValue(SwitchType.),
Description("开启状态,系统将通过插件中设置的推广位进行订单下载,联盟其他推广位订单将不下载,5-42设置项将无效")
]
public SwitchType order_kuaishou_download_set_pids { get; set; } = SwitchType.;
private string _notice_dingding_robotapi;
/// <summary>
/// 钉钉群接口
/// </summary>
[
Browsable(false)
]
public string notice_dingding_robotapi
{
//get;set;
get
{
if (string.IsNullOrWhiteSpace(_notice_dingding_robotapi))
{
if (notice_robotname != "请选择(钉钉/微信群机器人API名称")
{
var session = ApiClient.GetSession();
var item = session.FindSingle<fl_noticeapi_info>("select * from fl_noticeapi_info where name = @name", new { name = notice_robotname });
if (item != null)
{
notice_dingding_robotSecret = item.token;
_notice_dingding_robotapi = item.api_location;
}
}
else
{
notice_dingding_robotSecret = string.Empty;
_notice_dingding_robotapi = string.Empty;
}
}
return _notice_dingding_robotapi;
}
}
/// <summary>
/// 钉钉群秘钥
/// </summary>
[
Browsable(false)
]
public string notice_dingding_robotSecret { get; set; }
private string _notice_robotname;
/// <summary>
/// 钉钉/微信群机器人
/// </summary>
[Category("5、系统设置"), DisplayName("45.钉钉/微信群机器人"), DefaultValue("请选择(钉钉/微信群机器人API名称"), Description("请选择已存在的机器人名称,如果还没有添加,在【系统管理->群通知机器人】中添加机器人!"), TypeConverter(typeof(notice_robotname_item))]
public string notice_robotname
{
get { return _notice_robotname; }
set
{
if (_notice_robotname != value)
{
_notice_dingding_robotapi = string.Empty;
notice_dingding_robotSecret = string.Empty;
}
_notice_robotname = value;
}
}
public class notice_robotname_item : MyTypeConverter
{
public override string[] GetValues()
{
var session = ApiClient.GetSession();
var apis = session.FindNoticeapiRobots().ToArray();
var rst = new List<string>();
rst.Add("请选择(钉钉/微信群机器人API名称");
foreach (var item in apis) rst.Add(item.name);
return rst.ToArray();
}
}
/// <summary>
/// 联盟API通信平台
/// </summary>
[
Category("5、系统设置"), DisplayName("46.联盟API通信平台"), ReadOnly(false),//Description("不懂请勿乱修改!不懂请勿乱修改!默认即可!"),
]
public string cps_server_api { get; set; }
/// <summary>
/// 允许手动绑定的订单时间
/// </summary>
[
Category("5、系统设置"), DisplayName("47.允许手动绑定的订单时间"), //DefaultValue(),
Description("手动发送订单号,该订单的创建时间小于设置的时间将无法绑定")
]
public DateTime allow_bind_create_order_time { get; set; }
/// <summary>
/// 锁定界面开关
/// </summary>
[
Category("5、系统设置"), DisplayName("48.锁定界面开关"), DefaultValue(SwitchType.),
Description("锁定界面开启,5分钟不操作软件自动锁定")
]
public SwitchType is_lock_main { get; set; }
#endregion
#region
/// <summary>
/// 易提现 - API接口
/// </summary>
[
Category("6、微信商户付款 - 【新接口】"), DisplayName("01.易提现 - API接口"), PasswordPropertyText(true),// DefaultValue(""),
Description("请用谷歌浏览器Chrome、在网站Pay.52cmg.cn 中添加商户(或用系统默认商户)、获取API接口!")
]
public string pay_wechat_hostSign { get; set; }
/// <summary>
/// 支付平台地址
/// </summary>
[
Category("6、微信商户付款【已过时、不建议使用】"), DisplayName("01.支付平台地址"), DefaultValue(""),
Description("自定义独立支付系统,需要付费搭建!")
]
public string pay_wechat_host { get; set; }
/// <summary>
/// 公众号AppId
/// </summary>
[
Category("6、微信商户付款【已过时、不建议使用】"), DisplayName("02.公众号AppId"), DefaultValue(""),
Description("要求1、服务号 2、已认证 3、开通了支付功能\r\n登录网址mp.weixin.qq.com")
]
public string pay_wechat_gzh_appid { get; set; }
/// <summary>
/// 公众号AppSecret
/// </summary>
[
Category("6、微信商户付款【已过时、不建议使用】"), DisplayName("03.公众号AppSecret"), DefaultValue(""), PasswordPropertyText(true),
Description("要求1、服务号 2、已认证 3、开通了支付功能\r\n登录网址mp.weixin.qq.com")
]
public string pay_wechat_gzh_appsecret { get; set; }
/// <summary>
/// 商户号AppId
/// </summary>
[
Category("6、微信商户付款【已过时、不建议使用】"), DisplayName("04.商户号AppId"), DefaultValue(""),
Description("要求:登录微信商户平台->产品中心->开通企业付款到零钱\r\n登录网址pay.weixin.qq.com")
]
public string pay_wechat_sh_appid { get; set; }
/// <summary>
/// 商户号AppSecret
/// </summary>
[
Category("6、微信商户付款【已过时、不建议使用】"), DisplayName("05.商户号AppSecret"), DefaultValue(""), PasswordPropertyText(true),
Description("要求:登录微信商户平台->产品中心->开通企业付款到零钱\r\n登录网址pay.weixin.qq.com")
]
public string pay_wechat_sh_appsecret { get; set; }
/// <summary>
/// 商户号证书路径
/// </summary>
[
Category("6、微信商户付款【已过时、不建议使用】"), DisplayName("06.商户号证书路径"), DefaultValue(""),
Description("通过商户平台,再本机安装证书,安装完成后,请填写路径!\r\n例如C:\\Windows\\WechatCerpath\\apiclient_cert.p12")
]
public string pay_wechat_sh_cerpath { get; set; }
/// <summary>
/// 著作授权信息
/// </summary>
[
Category("6、微信商户付款【已过时、不建议使用】"), DisplayName("07.著作授权信息"), DefaultValue("©Copyright 2019-2020 FLSystem"),
Description("网站底部的著作授权信息例如©Copyright 2019-2020 FLSystem")
]
public string pay_wechat_web_footer { get; set; }
#endregion
/// <summary>
/// 消息预警方案
/// </summary>
[Browsable(false)]
public bool message_warning_switch { get; set; }
/// <summary>
/// 需要输入密码的应用
/// </summary>
[Browsable(false)]
public List<string> admin_verify_control_name { get; set; }
/// <summary>
/// 显示debug日志
/// </summary>
[Browsable(false)]
public bool show_debug_log { get; set; }
/// <summary>
/// 商户未领取提示语
/// </summary>
[Browsable(false)]
public string send_shpay_msg { get; set; } = @"一一一一未 领 取 红 包一一一一
[领取地址]
[]";
/// <summary>
/// 24小时发送未领取商户开关
/// </summary>
[Browsable(false)]
public bool send_shpay_switch { get; set; } = false;
/// <summary>
/// 商户未领取提示语是否以小程序的形式发送
/// </summary>
[Browsable(false)]
public bool send_shpay_minixml { get; set; } = false;
/// <summary>
/// 系统配置
/// </summary>
public SystemConfig()
{
this.allow_bind_create_order_time = DateTime.MinValue;
this.message_warning_switch = false;
this.pay_wechat_hostSign = string.Empty;
this._mess_frequent_sleep_time = 5;
this.show_debug_log = true;
this.pay_wechat_host = string.Empty;
this.admin_verify_control_name = new List<string>() { "应用功能", "系统设置" };
this.pay_wechat_web_footer = "©Copyright 2019-2020 FLSystem";
this.pay_wechat_gzh_appid = string.Empty;
this.pay_wechat_gzh_appsecret = string.Empty;
this.pay_wechat_sh_appid = string.Empty;
this.pay_wechat_sh_appsecret = string.Empty;
this.pay_wechat_sh_cerpath = string.Empty;
this.cps_server_api = "http://cps.api.52cmg.cn/";
//this.notice_dingding_robotapi = string.Empty;
//this.notice_dingding_robotSecret = string.Empty;
this.notice_robotname = "请选择(钉钉/微信群机器人API名称";
this.order_alimama_bind = SwitchType.;
this.order_pinduoduo_bind = SwitchType.;
this.order_suning_bind = SwitchType.;
this.order_jingdong_bind = SwitchType.;
this.order_weipinhui_bind = SwitchType.;
this.order_douyin_bind = SwitchType.;
this.order_alimama_last_auto_bind = SwitchType.;
this.order_alimama_last_auto_capture = SwitchType.;
this.is_lock_main = SwitchType.;
this.FreezingCondition = FreezingConditionType.;
msg_error = "对不起查询失败,当前是使用高峰期,请稍后重试! 给您造成不便敬请谅解!";
URLTbTkl = string.Empty;
URLTbCms = string.Empty;
URLTbDdxq = string.Empty;
dwz_type = DwzType.;
account_admin_email = string.Empty;
msg_wx_convertswich = SwitchType.;
_timer_clear_memory = 120;
_timer_down_alimama = 40;
_time_down_pinduoduo = 40;
_time_down_jingdong = 600;
_time_down_weipinhui = 60;
_time_down_douyin = 60;
_time_down_suning = 60;
_time_down_kuaishou = 300;
SMTP_SSL = SwitchType.;
SMTP_Pass = string.Empty;
SMTP_Host = "smtp.qq.com";
SMTP_Port = 587;
SMTP_User = string.Empty;
PointRitio = 1;
PointName = "元";
AwardDepot = AwardDepotType.;
AwardOne = 0;
AwardTwo = 0;
AwardThree = 0;
AwardCreator = 0;
TklStr_First = "《";
TKLStr_End = "《";
QueryItemExpireTime = 30;
_TGWRandomCount = 50;
order_alimama_down_type = DownAdzoneType.广;
order_alimama_not_download_pid = string.Empty;
order_pinduoduo_down_type = DownAdzoneType.广;
order_pinduoduo_not_download_pid = string.Empty;
order_jingdong_down_type = DownAdzoneType.广;
order_jingdong_not_download_pid = string.Empty;
order_weipinhui_down_type = DownAdzoneType.广;
order_weipinhui_not_download_pid = string.Empty;
order_kuaishou_bind = SwitchType.;
order_kuaishou_down_type = DownAdzoneType.广;
order_kuaishou_not_download_pid = string.Empty;
order_kuaishou_download_set_pids = SwitchType.;
DwzToken = string.Empty;
CheckUrlSwitch = SwitchType.;
SubsidyTb = SwitchType.;
SubsidyPdd = SwitchType.;
SubsidyJd = SwitchType.;
}
}
}