GP12触摸屏代码重构

This commit is contained in:
2025-02-14 17:26:56 +08:00
parent 965f17eecd
commit 96e0986a0e
5 changed files with 175 additions and 3 deletions

View File

@@ -176,5 +176,28 @@ namespace ZR.Admin.WebApi.Controllers
return SUCCESS(response);
}
/// <summary>
/// 自动生成标签记录
/// </summary>
/// <returns></returns>
[HttpPost("GenerateVirtualLabel")]
[AllowAnonymous]
public IActionResult GenerateVirtualLabel([FromBody] QcGp12WorkorderDetailDto parm)
{
try
{
var modal = parm.Adapt<QcGp12WorkorderDetailDto>().ToCreate(HttpContext);
var response = _QcGp12Service.GenerateVirtualLabel(modal);
return SUCCESS(response);
}
catch (Exception ex)
{
return ToResponse(ApiResult.Error(ex.Message));
}
}
}
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<key id="f640f114-5530-4155-93d1-18881f207ae2" version="1">
<creationDate>2025-02-10T03:30:32.3322015Z</creationDate>
<activationDate>2025-02-10T03:30:32.1838996Z</activationDate>
<expirationDate>2025-05-11T03:30:32.1838996Z</expirationDate>
<descriptor deserializerType="Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorDescriptorDeserializer, Microsoft.AspNetCore.DataProtection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
<descriptor>
<encryption algorithm="AES_256_CBC" />
<validation algorithm="HMACSHA256" />
<masterKey p4:requiresEncryption="true" xmlns:p4="http://schemas.asp.net/2015/03/dataProtection">
<!-- Warning: the key below is in an unencrypted form. -->
<value>REaFIE6cup/0qF8KszWBx7UGvUJ57UOYEZuPcYu50gGn3+pASnFwUdgwwDFLRKozGD0w9lLToqhYT4gEcPT4rA==</value>
</masterKey>
</descriptor>
</descriptor>
</key>