79 lines
1.8 KiB
C#
79 lines
1.8 KiB
C#
|
using Api.Framework.SDK;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Main
|
|||
|
{
|
|||
|
[Config(Name = "插件-Web淘宝返利-配置")]
|
|||
|
public class Config
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 发送类型
|
|||
|
/// </summary>
|
|||
|
public SendTemplateType SendType { get; set; } = SendTemplateType.卡片;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 自定义内容
|
|||
|
/// </summary>
|
|||
|
public string CustomContent { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 卡片
|
|||
|
/// </summary>
|
|||
|
public string CardText { get; set; } = @"<appmsg appid='' sdkver='0'>
|
|||
|
<title>[标题]</title>
|
|||
|
<des>[文案描述]</des>
|
|||
|
<action>view</action>
|
|||
|
<type>5</type>
|
|||
|
<showtype>0</showtype>
|
|||
|
<content/>
|
|||
|
<url>[下单地址]</url>
|
|||
|
<dataurl/>
|
|||
|
<lowurl/>
|
|||
|
<lowdataurl/>
|
|||
|
<recorditem><![CDATA[]]></recorditem>
|
|||
|
<thumburl>[商品图片]</thumburl>
|
|||
|
<messageaction/>
|
|||
|
<extinfo/>
|
|||
|
<sourceusername/>
|
|||
|
<sourcedisplayname/>
|
|||
|
<commenturl/>
|
|||
|
<appattach>
|
|||
|
<totallen>0</totallen>
|
|||
|
<attachid/>
|
|||
|
<emoticonmd5/>
|
|||
|
<fileext/>
|
|||
|
<aeskey/>
|
|||
|
</appattach>
|
|||
|
</appmsg>";
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 图文
|
|||
|
/// </summary>
|
|||
|
public string ImageText { get; set; } = @"[图片=[商品图片]][分段][延迟=1]----下单消息----
|
|||
|
[标题]
|
|||
|
【下单价】[下单价]元
|
|||
|
【优惠券】[优惠券]元
|
|||
|
【红包金额】[红包金额]元
|
|||
|
【合计节约】[合计节约]元
|
|||
|
[文案描述]
|
|||
|
|
|||
|
打开网址复制优惠口令:
|
|||
|
[下单地址]";
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 接受好友申请
|
|||
|
/// </summary>
|
|||
|
public bool AcceptFriend { get; set; } = false;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 增加新好友提示语
|
|||
|
/// </summary>
|
|||
|
public string NewFriendMess { get; set; } = string.Empty;
|
|||
|
|
|||
|
}
|
|||
|
}
|