1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| using ApiTools.Core;
| using Baidu.Aip;
| using MediatR;
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Text;
| using System.Threading.Tasks;
|
| namespace ApiTools.CommonServer.Application
| {
| public class SaveWxCommandHandler(WxmpUtils utils) : IRequestHandler<SaveWxSettingCommand, Guid>
| {
| public async Task<Guid> Handle(SaveWxSettingCommand request, CancellationToken cancellationToken)
| {
| return await utils.WxSend(new SendRequest
| {
| WxmpCode = request.Code,
| EnvVersion = request.EnvVersion,
| template_id = request.t,
| page = request.ChannelCreatedUserId,
| touser = request.ChannelCreatedUserId,
| data =
| miniprogram_state=
| lang=
| }, request.TemplateParam, cancellationToken);
| }
| }
| }
|
|