(#2)增加返回代码和返回信息记录
This commit is contained in:
parent
10f1e7187e
commit
629a549cdd
|
@ -6,7 +6,7 @@ namespace Cmdjy.Dal
|
||||||
{
|
{
|
||||||
public Configuration() {
|
public Configuration() {
|
||||||
AutomaticMigrationsEnabled = WebSettings.AutoMigrations;
|
AutomaticMigrationsEnabled = WebSettings.AutoMigrations;
|
||||||
AutomaticMigrationDataLossAllowed = true;
|
AutomaticMigrationDataLossAllowed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Seed(DjyDbContext context) {
|
protected override void Seed(DjyDbContext context) {
|
||||||
|
|
|
@ -37,5 +37,13 @@ namespace Cmdjy.Dal.Tables
|
||||||
/// 获取最大记录数
|
/// 获取最大记录数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string MaxCount { get; set; }
|
public string MaxCount { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 响应代码
|
||||||
|
/// </summary>
|
||||||
|
public string Code { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 响应信息
|
||||||
|
/// </summary>
|
||||||
|
public string Msg { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -97,6 +97,7 @@ namespace Cmdjy.ws
|
||||||
ClientAddress = this.Context.Request.UserHostAddress,
|
ClientAddress = this.Context.Request.UserHostAddress,
|
||||||
LogDatatime = DateTime.Now,DrugId = d.Id.ToString(),
|
LogDatatime = DateTime.Now,DrugId = d.Id.ToString(),
|
||||||
PrescriptionId = p.Id.ToString(),
|
PrescriptionId = p.Id.ToString(),
|
||||||
|
Code = result.Code.ToString(),Msg = result.Msg,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user