mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 18:04:42 +08:00
test(wxapi): 补充 WxBizMsgCryptor 工具类的单元测试
This commit is contained in:
@@ -272,7 +272,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Utilities
|
||||
XmlDocument xmlDoc = new XmlDocument();
|
||||
xmlDoc.LoadXml(xml);
|
||||
|
||||
XmlNode xmlRoot = xmlDoc.FirstChild;
|
||||
XmlNode? xmlRoot = xmlDoc.FirstChild;
|
||||
if (xmlRoot == null)
|
||||
return false;
|
||||
|
||||
encryptedMsg = xmlRoot["Encrypt"]?.InnerText?.ToString();
|
||||
toUserName = xmlRoot["ToUserName"]?.InnerText?.ToString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user