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