feat: 完善小程序通知
This commit is contained in:
@@ -14,7 +14,10 @@ public class SubscribeNoticeRequest
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string template_id { get; set; }
|
public string template_id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 跳转页面
|
||||||
|
/// </summary>
|
||||||
|
public string page { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 小程序模板消息的数据
|
/// 小程序模板消息的数据
|
||||||
@@ -44,7 +47,12 @@ public class SubscribeNoticeInput
|
|||||||
/// 小程序模板id
|
/// 小程序模板id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string template_id { get; set; }
|
public string template_id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 跳转页面
|
||||||
|
/// </summary>
|
||||||
|
public string page { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 公众号模板消息的数据
|
/// 公众号模板消息的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -60,10 +60,11 @@ public class WeChatMiniProgramManager : IWeChatMiniProgramManager, ISingletonDep
|
|||||||
{
|
{
|
||||||
touser = input.touser,
|
touser = input.touser,
|
||||||
template_id = input.template_id,
|
template_id = input.template_id,
|
||||||
|
page = input.page,
|
||||||
data = input.data,
|
data = input.data,
|
||||||
miniprogram_state = _options.Notice.State??"formal"
|
miniprogram_state = _options.Notice?.State??"formal"
|
||||||
};
|
};
|
||||||
req.template_id=req.template_id?? _options.Notice.TemplateId;
|
req.template_id=req.template_id?? _options.Notice?.TemplateId;
|
||||||
|
|
||||||
using (HttpClient httpClient = new HttpClient())
|
using (HttpClient httpClient = new HttpClient())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ public class WeChatMiniProgramNoticeEventHandler : ILocalEventHandler<WeChatMini
|
|||||||
await _weChatMiniProgramManager.SendSubscribeNoticeAsync(new SubscribeNoticeInput
|
await _weChatMiniProgramManager.SendSubscribeNoticeAsync(new SubscribeNoticeInput
|
||||||
{
|
{
|
||||||
touser = openId,
|
touser = openId,
|
||||||
|
page = "pages/digitalCollectibles/digitalCollectibles",
|
||||||
data = new Dictionary<string, keyValueItem>()
|
data = new Dictionary<string, keyValueItem>()
|
||||||
{
|
{
|
||||||
//活动名称
|
//活动名称
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace Yi.Abp.Domain.Shared.Settings
|
|||||||
new SettingDefinition("MiningMinIntervalSeconds", "3"),
|
new SettingDefinition("MiningMinIntervalSeconds", "3"),
|
||||||
|
|
||||||
//每次挖到矿的概率--控制爆率
|
//每次挖到矿的概率--控制爆率
|
||||||
new SettingDefinition("MiningMinProbability", "0.06"),
|
new SettingDefinition("MiningMinProbability", "0.9"),
|
||||||
|
|
||||||
//交易税率--控制频繁交易
|
//交易税率--控制频繁交易
|
||||||
new SettingDefinition("MarketTaxRate", "0.02"),
|
new SettingDefinition("MarketTaxRate", "0.02"),
|
||||||
|
|||||||
Reference in New Issue
Block a user