341 lines
14 KiB
C#
341 lines
14 KiB
C#
using Api.Framework;
|
||
using Api.Framework.Enums;
|
||
using Api.Framework.Tools;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
using UI.Framework.Entitys;
|
||
|
||
namespace Delivery.Plugin.Model
|
||
{
|
||
public class fl_plugin_delivery_group : base_model
|
||
{
|
||
[Category("1)、基础设置"), DisplayName("01.大学名字"), DefaultValue(3), Description(@"")]
|
||
/// <summary>
|
||
/// 大学名
|
||
/// </summary>
|
||
public string name { get; set; }
|
||
|
||
[SqlSugar.SugarColumn(Length = 2000)]
|
||
|
||
|
||
[Category("1)、基础设置"), DisplayName("02.取件位置"), DefaultValue(@""), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor)),Browsable(false)]
|
||
/// <summary>
|
||
/// 取件位置
|
||
/// </summary>
|
||
public string position { get; set; }
|
||
private List<string> Positions;
|
||
public List<string> GetPositions(bool f5 = false)
|
||
{
|
||
if (Positions == null || f5)
|
||
{
|
||
Positions = new List<string>();
|
||
var session = ApiClient.GetSession();
|
||
var _temp = session.Queryable<fl_plugin_delivery_kuaidi>().Where(f=>f.group_id == this.id).ToList();
|
||
foreach (var item in _temp) Positions.Add(item.name);
|
||
}
|
||
|
||
return Positions;
|
||
}
|
||
|
||
|
||
[Category("1)、基础设置"), DisplayName("03.机器人微信号"), DefaultValue(@""), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
[SqlSugar.SugarColumn(Length = 2000)]
|
||
/// <summary>
|
||
/// 微信号
|
||
/// </summary>
|
||
public string weixinhao { get; set; }
|
||
|
||
private List<string> weixinhaos;
|
||
public List<string> GetWeixinhao(bool f5=false)
|
||
{
|
||
if (weixinhaos==null || f5)
|
||
{
|
||
weixinhaos = weixinhao.Split(new string[] { "\r\n" },StringSplitOptions.None).ToList();
|
||
}
|
||
|
||
return weixinhaos;
|
||
}
|
||
|
||
[Category("1)、基础设置"), DisplayName("04.管理员ID"), DefaultValue(@""), Description("软件上的数据编号ID,并非微信号,或者微信ID."), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
[SqlSugar.SugarColumn(Length = 2000)]
|
||
public string admins { get; set; }
|
||
|
||
|
||
[Category("1)、基础设置"), DisplayName("05.最迟几点可提交"), DefaultValue(@""), Description("例如:16:30")]
|
||
public string lastTime { get; set; }
|
||
|
||
|
||
[Category("1)、基础设置"), DisplayName("07.强制停止提交原因"), DefaultValue(@""), Description("此处请不要写,如果写了原因,所有人将无法提交成功,将会提示此原因!"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
public string stop_sumbmit_text { get; set; }
|
||
|
||
[Category("1)、基础设置"), DisplayName("08.备注"), DefaultValue(@""), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 备注信息
|
||
/// </summary>
|
||
public string remark { get; set; }
|
||
|
||
|
||
[Category("1)、基础设置"), DisplayName("09.上传凭证成功"), DefaultValue(@"快递已经到啦!
|
||
取货码:[取件码]
|
||
请速度拿哦~
|
||
您好 同学快递已经送达 .下面链接是快递位置图片
|
||
[凭证图片地址]
|
||
请及时拿走.送达后.您未及时拿走.后果自负哦~
|
||
您觉得好可以向同学宣传一下咱们免费配送快递
|
||
如果您下次还想用免费配送.请看如下视频
|
||
[教程]"), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 上传凭证提示语
|
||
/// </summary>
|
||
public string upload_msg { get; set; }
|
||
|
||
|
||
#region 基础设置
|
||
[Category("2)、运营设置"), DisplayName("01.免费次数"), DefaultValue(3), Description(@"新用户都会赠送免单码")]
|
||
/// <summary>
|
||
/// 免费多少单
|
||
/// </summary>
|
||
public int FreeCount { get; set; }
|
||
|
||
[ Category("2)、运营设置"), DisplayName("02.最低标准"), DefaultValue(3), Description(@"最低多少佣金,才参与免单")]
|
||
/// <summary>
|
||
/// 满足多少加一次
|
||
/// </summary>
|
||
public double ConditionPoint { get; set; }
|
||
|
||
|
||
|
||
[Category("2)、运营设置"), DisplayName("03.自动通过好友申请开关"), DefaultValue(SwitchType.开启), Description(@"功能开启时,将自动通过好友申请")]
|
||
public SwitchType Accept { get; set; }
|
||
|
||
/// <summary>
|
||
/// 申请延迟时间秒数
|
||
/// </summary>
|
||
[Category("2)、运营设置"), DisplayName("04.自动通过好友申请延迟时间"), DefaultValue(10), Description(@"自动通过好友申请功能开启时,将延迟申请通过动作")]
|
||
public int Retardation { get; set; }
|
||
|
||
/// <summary>
|
||
/// 新人欢迎提示
|
||
/// </summary>
|
||
[SqlSugar.SugarColumn(Length = 2000), Category("2)、运营设置"), DisplayName("05.新人欢迎提示"), DefaultValue(@"您好同学,我们承诺“终身免费”配送快递,永不收费!!!!!
|
||
|
||
👇👇👇赠送您一个免单码
|
||
免 单 码 :[免单码]
|
||
代取地址:[取件地址]
|
||
|
||
打开连接填写信息,就给您配送
|
||
以后想继续免费,可参考教程
|
||
[教程]"), Description(@"支持变量:[机器人账号]、[机器人昵称]、[账号]、[昵称]、[取件地址]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
public string WelcomeTip { get; set; }
|
||
|
||
|
||
|
||
[ Category("2)、运营设置"), DisplayName("06.付款成功提示"), DefaultValue(@"--------【获得免单】--------
|
||
[商品标题]
|
||
🔨订单号:[订单号]
|
||
🔥免单码:[免单码]
|
||
🚚取件地址:[取件地址]
|
||
----------------------------------
|
||
🎁恭喜您,获得一个免单码🎁
|
||
🉐使用后帮您免费取快递🉐
|
||
"), Description("支持变量:[商品标题]、[订单号]、[免单码]、[取件地址]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 绑定订单 - 提示语
|
||
/// </summary>
|
||
public string BMsgSuccess1 { get; set; }
|
||
|
||
|
||
[ Category("2)、运营设置"), DisplayName("07.订单不满足标准"), DefaultValue(@"一一一一免 单 失 败一一一一
|
||
[商品标题]
|
||
🔨订单号:[订单号]🔨
|
||
|
||
抱歉,此订单不满足免单条件,暂无法代取!"), Description("支持变量:[商品标题]、[订单号]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
|
||
/// <summary>
|
||
/// 订单不满足
|
||
/// </summary>
|
||
public string BMsgError1 { get; set; }
|
||
|
||
[ Category("2)、运营设置"), DisplayName("08.找不到这个订单号"), DefaultValue(@"一一一一免 单 失 败一一一一
|
||
🔨订单号:[订单号]
|
||
我们无法查询此订单信息,请确认是否通过我们免单链接下单!"), Description("支持变量:[订单号]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 订单不存在
|
||
/// </summary>
|
||
public string BMsgError2 { get; set; }
|
||
|
||
|
||
[Category("2)、运营设置"), DisplayName("09.订单退款或失效了"), DefaultValue(@"一一一一撤 销 免 单一一一一
|
||
[商品标题]
|
||
|
||
🔥免单码:[免单码]
|
||
🔨订单号:[订单号]
|
||
由于退款或取消交易、已撤销一个免单码!"), Description("支持变量:[商品标题]、[订单号]、[免单码]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
|
||
/// <summary>
|
||
/// 订单失效、或退款
|
||
/// </summary>
|
||
public string BMsgError3 { get; set; }
|
||
|
||
[ Category("2)、运营设置"), DisplayName("10.订单维权中"), DefaultValue(@"一一一一撤 销 免 单一一一一
|
||
[商品标题]
|
||
🔥免单码:[免单码]
|
||
🔨订单号:[订单号]
|
||
已经领取过,无法重复领取哦!"), Description(@"支持变量:[商品标题]、[订单号]、[免单码]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 订单维权中
|
||
/// </summary>
|
||
public string BMsgError4 { get; set; }
|
||
|
||
[ Category("2)、运营设置"), DisplayName("11.订单重复绑定"), DefaultValue(@"一一一一【获得免单】一一一一
|
||
[商品标题]
|
||
🔨订单号:[订单号]
|
||
🔥免单码:[免单码]
|
||
🚚取件地址:[取件地址]
|
||
----------------------------------
|
||
🎁恭喜您,获得一个免单码🎁
|
||
🉐使用后帮您免费取快递🉐"), Description(@"支持变量:[商品标题]、[订单号]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 订单重复绑定
|
||
/// </summary>
|
||
public string BMsgError5 { get; set; }
|
||
|
||
[ Category("2)、运营设置"), DisplayName("12.订单号已被他人绑定"), DefaultValue(@"一一一一免 单 失 败一一一一
|
||
订单号:[订单号]
|
||
|
||
不好意思,这个订单被其他同学认领了哦!"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 订单重复绑定
|
||
/// </summary>
|
||
public string BMsgError6 { get; set; }
|
||
|
||
[ Category("2)、运营设置"), DisplayName("13.获取免单码列表"), DefaultValue(@"一一一一免 单 码一一一一
|
||
[免单码列表]
|
||
🚚取件地址:[取件地址]
|
||
一一一一一一一一一一一一
|
||
免单码可以分享给同学一起用哦~特别是她!"), Description(@"支持变量:[免单码列表]、[取件地址]、[总数]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 查询免单码 提示语
|
||
/// </summary>
|
||
public string CMsgSuccess1 { get; set; }
|
||
|
||
[ Category("2)、运营设置"), DisplayName("14.提交代取件成功"), DefaultValue(@"一一一一【提交成功】一一一一
|
||
💞姓 名:[姓名]
|
||
🔥免单码:[免单码]
|
||
💬取件码:[取件码]
|
||
📞手机号:[手机号]
|
||
💒收货地:[收货地址]
|
||
----------------------------------
|
||
⏳已收到您的订单,今天会给您配送
|
||
⏳以后还想免费代拿快递 请看视频
|
||
[教程]"), Description(@"支持变量:[免单码]、[取件码、[手机号]、[收货地址]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
|
||
/// <summary>
|
||
/// 提交订单 提示语
|
||
/// </summary>
|
||
public string TMsgSuccess1 { get; set; }
|
||
|
||
#endregion
|
||
|
||
#region 自动通过好友
|
||
|
||
#endregion
|
||
|
||
public fl_plugin_delivery_group()
|
||
{
|
||
this.stop_sumbmit_text = string.Empty;
|
||
this.remark = string.Empty;
|
||
this.lastTime = "17:00";
|
||
this.name = string.Empty;
|
||
this.position = string.Empty;
|
||
this.weixinhao = string.Empty;
|
||
this.admins = string.Empty;
|
||
this.upload_msg = @"快递已经到啦!
|
||
取货码:[取件码]
|
||
请速度拿哦~
|
||
您好 同学快递已经送达 .下面链接是快递位置图片
|
||
[凭证图片地址]
|
||
请及时拿走.送达后.您未及时拿走.后果自负哦~
|
||
您觉得好可以向同学宣传一下咱们免费配送快递
|
||
如果您下次还想用免费配送.请看如下视频
|
||
[教程]";
|
||
|
||
this.WelcomeTip = @"您好同学,我们承诺“终身免费”配送快递,永不收费!!!!!
|
||
|
||
👇👇👇赠送您一个免单码
|
||
免 单 码 :[免单码]
|
||
代取地址:[取件地址]
|
||
|
||
打开连接填写信息,就给您配送
|
||
以后想继续免费,可参考教程
|
||
[教程]";
|
||
|
||
this.BMsgSuccess1 = @"一一一一免 单 失 败一一一一
|
||
[商品标题]
|
||
🔨订单号:[订单号]
|
||
|
||
抱歉,此订单不满足免单条件,暂无法代取!";
|
||
|
||
this.BMsgError1 = @"一一一一免 单 失 败一一一一
|
||
[商品标题]
|
||
🔨订单号:[订单号]
|
||
|
||
抱歉,此订单不满足免单条件,暂无法代取!";
|
||
|
||
this.BMsgError2 = @"一一一一免 单 失 败一一一一
|
||
🔨订单号:[订单号]
|
||
|
||
我们无法查询此订单信息,请确认是否通过我们免单链接下单!";
|
||
|
||
this.BMsgError3 = @"一一一一撤 销 免 单一一一一
|
||
[商品标题]
|
||
|
||
🔥免单码:[免单码]
|
||
🔨订单号:[订单号]
|
||
由于退款或取消交易、已撤销一个免单码!";
|
||
|
||
this.BMsgError4 = @"一一一一撤 销 免 单一一一一
|
||
[商品标题]
|
||
🔥免单码:[免单码]
|
||
🔨订单号:[订单号]
|
||
已经领取过,无法重复领取哦!";
|
||
|
||
this.BMsgError5 = @"一一一一【获得免单】一一一一
|
||
[商品标题]
|
||
🔨订单号:[订单号]
|
||
🔥免单码:[免单码]
|
||
🚚取件地址:[取件地址]
|
||
----------------------------------
|
||
🎁恭喜您,获得一个免单码🎁
|
||
🉐使用后帮您免费取快递🉐";
|
||
|
||
this.BMsgError6 = @"一一一一免 单 失 败一一一一
|
||
订单号:[订单号]
|
||
|
||
不好意思,这个订单被其他同学认领了哦!";
|
||
|
||
this.CMsgSuccess1 = @"一一一一免 单 码一一一一
|
||
[免单码列表]
|
||
🚚取件地址:[取件地址]
|
||
一一一一一一一一一一一一
|
||
免单码可以分享给同学一起用哦~特别是她!";
|
||
|
||
this.TMsgSuccess1 = @"一一一一【提交成功】一一一一
|
||
💞姓 名:[姓名]
|
||
🔥免单码:[免单码]
|
||
💬取件码:[取件码]
|
||
📞手机号:[手机号]
|
||
💒收货地:[收货地址]
|
||
----------------------------------
|
||
⏳已收到您的订单,今天会给您配送
|
||
⏳以后还想免费代拿快递 请看视频
|
||
[教程]";
|
||
}
|
||
|
||
|
||
}
|
||
}
|