From 629a549cdd561dec07ca977bedd19876817b17cf Mon Sep 17 00:00:00 2001
From: falcon <9504402@qq.com>
Date: Thu, 7 Mar 2019 15:45:14 +0800
Subject: [PATCH] =?UTF-8?q?(#2)=E5=A2=9E=E5=8A=A0=E8=BF=94=E5=9B=9E?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=92=8C=E8=BF=94=E5=9B=9E=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WebSiteCode/Cmdjy/Cmdjy/Dal/Configuration.cs | 2 +-
WebSiteCode/Cmdjy/Cmdjy/Dal/Tables/WsdRequestLog.cs | 8 ++++++++
WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs | 1 +
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/WebSiteCode/Cmdjy/Cmdjy/Dal/Configuration.cs b/WebSiteCode/Cmdjy/Cmdjy/Dal/Configuration.cs
index 59dd461..56f709c 100644
--- a/WebSiteCode/Cmdjy/Cmdjy/Dal/Configuration.cs
+++ b/WebSiteCode/Cmdjy/Cmdjy/Dal/Configuration.cs
@@ -6,7 +6,7 @@ namespace Cmdjy.Dal
{
public Configuration() {
AutomaticMigrationsEnabled = WebSettings.AutoMigrations;
- AutomaticMigrationDataLossAllowed = true;
+ AutomaticMigrationDataLossAllowed = false;
}
protected override void Seed(DjyDbContext context) {
diff --git a/WebSiteCode/Cmdjy/Cmdjy/Dal/Tables/WsdRequestLog.cs b/WebSiteCode/Cmdjy/Cmdjy/Dal/Tables/WsdRequestLog.cs
index 89e0735..28836d4 100644
--- a/WebSiteCode/Cmdjy/Cmdjy/Dal/Tables/WsdRequestLog.cs
+++ b/WebSiteCode/Cmdjy/Cmdjy/Dal/Tables/WsdRequestLog.cs
@@ -37,5 +37,13 @@ namespace Cmdjy.Dal.Tables
/// 获取最大记录数
///
public string MaxCount { get; set; }
+ ///
+ /// 响应代码
+ ///
+ public string Code { get; set; }
+ ///
+ /// 响应信息
+ ///
+ public string Msg { get; set; }
}
}
\ No newline at end of file
diff --git a/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs
index 618df52..b1d3bab 100644
--- a/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs
+++ b/WebSiteCode/Cmdjy/Cmdjy/ws/WsdInterface.asmx.cs
@@ -97,6 +97,7 @@ namespace Cmdjy.ws
ClientAddress = this.Context.Request.UserHostAddress,
LogDatatime = DateTime.Now,DrugId = d.Id.ToString(),
PrescriptionId = p.Id.ToString(),
+ Code = result.Code.ToString(),Msg = result.Msg,
});
}
}