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