From f0bf887e538163e65101a4b9e2a165eb7694a90e Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期五, 21 十一月 2025 16:08:49 +0800
Subject: [PATCH] feat:开发
---
ApiTools.Core/Utils/WxmpUtils/WxmpUtils.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ApiTools.Core/Utils/WxmpUtils/WxmpUtils.cs b/ApiTools.Core/Utils/WxmpUtils/WxmpUtils.cs
index 33c360c..864a1d8 100644
--- a/ApiTools.Core/Utils/WxmpUtils/WxmpUtils.cs
+++ b/ApiTools.Core/Utils/WxmpUtils/WxmpUtils.cs
@@ -161,11 +161,11 @@
if (option == null || option.AppId.IsNull() || option.AppSecret.IsNull())
throw Oops.Oh(EnumErrorCodeType.s400, "鍙戦�佽闃呮秷鎭け璐ワ紝缂哄け閰嶇疆锛歐xmpOptions");
command.EnvVersion = option.EnvVersion;
- if (!options.Value.SubscribMessageTemplates.ContainsKey(command.TemplateId))
- throw Oops.Oh(EnumErrorCodeType.s400, "鍙戦�佽闃呮秷鎭け璐ワ紝妯℃澘涓嶅瓨鍦�");
- var template = options.Value.SubscribMessageTemplates[command.TemplateId];
- command.TemplateId = template.TemplateId;
- if (command.Page.IsNull()) command.Page = template.Page;
+ //if (!options.Value.SubscribMessageTemplates.ContainsKey(command.TemplateId))
+ // throw Oops.Oh(EnumErrorCodeType.s400, "鍙戦�佽闃呮秷鎭け璐ワ紝妯℃澘涓嶅瓨鍦�");
+ //var template = options.Value.SubscribMessageTemplates[command.TemplateId];
+ //command.TemplateId = template.TemplateId;
+ //if (command.Page.IsNull()) command.Page = template.Page;
var accessToken = await GetAccessToken(command.WxmpCode);
var jsonContent = JsonConvert.SerializeObject(command, new JsonSerializerSettings
{
--
Gitblit v1.9.1