This commit is contained in:
alex
2023-07-13 15:40:33 +08:00
parent 30c67925e1
commit 237e6f81f6
2 changed files with 11 additions and 5 deletions

View File

@@ -132,17 +132,19 @@ namespace Tnb.WarehouseMgr
[HttpPost]
public async Task<dynamic> MESCarrySign(MESCarrySignInput input)
{
var isSuccessFul = false;
if (input.IsNull()) throw new ArgumentNullException("input");
var signInput = input.Adapt<SignForDeliveryInput>();
try
{
await SignForDelivery(signInput);
isSuccessFul = true;
}
catch (Exception)
{
return ToApiResult(HttpStatusCode.InternalServerError, "签收失败");
isSuccessFul= false;
}
return ToApiResult();
return isSuccessFul;
}
}
}