diff --git a/.gitignore b/.gitignore
index c8fc6ef0..7197f895 100644
--- a/.gitignore
+++ b/.gitignore
@@ -198,3 +198,4 @@ ChordInstaller/*_app/
/WebZ/DongshifangMessageInterface.dll.config
/dp2weixinP2P/DongshifangMessageInterface.dll.config
/dp2Mini/代码签名证书-2019.p12
+/dp2weixinP2P/LmxxReceiveNoticeInterface.dll.config
diff --git a/DigitalPlatform.Interfaces/NoticeInterface.cs b/DigitalPlatform.Interfaces/NoticeInterface.cs
index b9723419..94af2bc9 100644
--- a/DigitalPlatform.Interfaces/NoticeInterface.cs
+++ b/DigitalPlatform.Interfaces/NoticeInterface.cs
@@ -19,8 +19,10 @@ public class NoticeInterface
/// -1 出错
///
public virtual int SendNotice(string noticeXml,
+ out string info,
out string strError)
{
+ info = "";
strError = "";
return 0;
}
diff --git a/dp2weixin.service/dp2WeiXinService.cs b/dp2weixin.service/dp2WeiXinService.cs
index 6a4ea963..1cf606d8 100644
--- a/dp2weixin.service/dp2WeiXinService.cs
+++ b/dp2weixin.service/dp2WeiXinService.cs
@@ -1105,14 +1105,17 @@ public int InternalDoMessage(MessageRecord record,
LibModel libCfg= this._areaMgr.GetLibCfg(lib.id, libraryCode);
if (libCfg !=null && string.IsNullOrEmpty(libCfg.noticedll) == false)
{
- nRet = this.TransNotice(strBody, libCfg.noticedll, out strError);
+ string tempInfo = "";
+
+ nRet = this.TransNotice(strBody, libCfg.noticedll, out tempInfo,
+ out strError);
if (nRet == -1)
{
- WriteErrorLog("向"+libCfg.noticedll+ "转发'"+strType+"'通知出错:" + strError);
+ WriteErrorLog("向"+libCfg.noticedll+ "转发'"+strType+"'通知出错:" + strError+"["+tempInfo+"]");
}
else
{
- WriteDebug("向" + libCfg.noticedll + "转发'" + strType + "'通知成功。");
+ WriteDebug("向" + libCfg.noticedll + "转发'" + strType + "'通知成功。["+tempInfo+"]");
//WriteDebug(strBody);
}
}
@@ -3039,9 +3042,11 @@ private int SendArrived(XmlDocument bodyDom,
///
public int TransNotice(string noticeXml,
string assemblyName,
+ out string info,
out string strError)
{
strError = "";
+ info = "";
int nRet = 0;
//string assemblyName = "LmxxReceiveNoticeInterface";
if (string.IsNullOrEmpty(assemblyName) == true)
@@ -3064,6 +3069,7 @@ public int TransNotice(string noticeXml,
// 外部接口发送通知
nRet = external_interface.SendNotice(noticeXml,
+ out info,
out strError);
if (nRet == -1)
{
diff --git a/dp2weixinP2P/dp2weixinWeb.csproj b/dp2weixinP2P/dp2weixinWeb.csproj
index 56e81590..1068fe79 100644
--- a/dp2weixinP2P/dp2weixinWeb.csproj
+++ b/dp2weixinP2P/dp2weixinWeb.csproj
@@ -205,9 +205,6 @@
-
- Always
-
@@ -240,7 +237,10 @@
-
+
+ Always
+
+
Always