diff --git a/24Hour/24Hour.csproj b/24Hour/24Hour.csproj
index 65d5a20..b731513 100644
--- a/24Hour/24Hour.csproj
+++ b/24Hour/24Hour.csproj
@@ -8,8 +8,8 @@
True
e485308c-2f05-470b-b0a4-68f1ec2b3412
Linux
- 1.0.1.11
- 1.0.1.11
+ 1.0.1.15
+ 1.0.1.15
diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs
index e641a8c..5267aea 100644
--- a/24Hour/Controllers/Common/LawyerArchivesController.cs
+++ b/24Hour/Controllers/Common/LawyerArchivesController.cs
@@ -1098,6 +1098,55 @@ namespace _24Hour.Controllers.Common
return Task.FromResult(result);
}
+ [HttpPost]
+ [Route("UploadSignImage")]
+ ///
+ ///
+ ///
+ ///
+ ///
+ public async Task UploadSignImage(object data)
+ {
+ var input = data.ConvertToAnonymousType(new
+ {
+ id = default(string),
+ image = default(string)
+ });
+ if (string.IsNullOrEmpty(input.image) == false)
+ {
+ var _path = Path.Combine("CaseFile", "card", DateTime.Now.ToString("yyyy-MM-dd"));
+ var dic = Path.Combine(Environment.CurrentDirectory, "wwwroot", _path);
+ var filename = DateTime.Now.Ticks.ToString() + ".png";
+ var filefullpath = Path.Combine(dic, filename);
+ if (Directory.Exists(dic) == false)
+ {
+ Directory.CreateDirectory(dic);
+ }
+ await System.IO.File.WriteAllBytesAsync(filefullpath, Convert.FromBase64String(input.image));
+
+ var item = await _db.Queryable().Where(x => x.Id == input.id).FirstAsync();
+ if (item != null)
+ {
+ var __path = Path.Combine(_path, filename);
+ var repath = "/" + __path.Replace(@"\", @"/");
+ item.secertphoto = repath;
+ await _db.Updateable(item).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync();
+ result.IsSucceed = true;
+ }
+ else
+ {
+ result.IsSucceed = false;
+ result.Message = "数据不存在";
+ }
+ }
+ else
+ {
+ result.IsSucceed = false;
+ result.Message = "图片接收失败";
+ }
+
+ return result;
+ }
public class DecodeQRDataModel
{
public string QRData { get; set; }
diff --git a/Elight.Entity/APPDto/Lawyer/LawyerArchivesDto.cs b/Elight.Entity/APPDto/Lawyer/LawyerArchivesDto.cs
index 670c557..488a15d 100644
--- a/Elight.Entity/APPDto/Lawyer/LawyerArchivesDto.cs
+++ b/Elight.Entity/APPDto/Lawyer/LawyerArchivesDto.cs
@@ -52,6 +52,8 @@ namespace Elight.Entity.APPDto.Lawyer
///
[DataMember]
public string? casename { get; set; }
+ [DataMember]
+ public string? secertphoto { get; set; }
///
/// 授权的开始阅卷时间
///
diff --git a/Elight.Entity/AppMode/Lawyer/LawyerArchives.cs b/Elight.Entity/AppMode/Lawyer/LawyerArchives.cs
index c471f98..8a23ed6 100644
--- a/Elight.Entity/AppMode/Lawyer/LawyerArchives.cs
+++ b/Elight.Entity/AppMode/Lawyer/LawyerArchives.cs
@@ -52,6 +52,8 @@ namespace Elight.Entity.AppMode.Lawyer
public DateTime? createTime { get; set; }
[DataMember]
public string? createrId { get; set; }
+ [DataMember]
+ public string? secertphoto { get; set; }
///
/// 已缓存的文件计数
///