(#2)增加返回代码和返回信息记录

This commit is contained in:
falcon 2019-03-07 15:45:14 +08:00
parent 10f1e7187e
commit 629a549cdd
3 changed files with 10 additions and 1 deletions

View File

@ -6,7 +6,7 @@ namespace Cmdjy.Dal
{
public Configuration() {
AutomaticMigrationsEnabled = WebSettings.AutoMigrations;
AutomaticMigrationDataLossAllowed = true;
AutomaticMigrationDataLossAllowed = false;
}
protected override void Seed(DjyDbContext context) {

View File

@ -37,5 +37,13 @@ namespace Cmdjy.Dal.Tables
/// 获取最大记录数
/// </summary>
public string MaxCount { get; set; }
/// <summary>
/// 响应代码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 响应信息
/// </summary>
public string Msg { get; set; }
}
}

View File

@ -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,
});
}
}