This commit is contained in:
2024-06-27 16:42:39 +08:00
parent a45bb93e08
commit 398f8f3696
2 changed files with 3 additions and 3 deletions

View File

@@ -10,6 +10,6 @@ namespace Tnb.WarehouseMgr.Interfaces
public interface IWmsCarryUnbindService public interface IWmsCarryUnbindService
{ {
Task<Result> CarryUnbind(CarryBindInput input); Task<Result> CarryUnbind(CarryBindInput input);
Task<dynamic> CarryCodeUnbind(CarryCodeUnbindInput input); Task<Result> CarryCodeUnbind(CarryCodeUnbindInput input);
} }
} }

View File

@@ -196,7 +196,7 @@ namespace Tnb.WarehouseMgr
/// <exception cref="ArgumentNullException"></exception> /// <exception cref="ArgumentNullException"></exception>
/// <exception cref="AppFriendlyException"></exception> /// <exception cref="AppFriendlyException"></exception>
[NonAction] [NonAction]
public async Task<dynamic> CarryCodeUnbind(CarryCodeUnbindInput input) public async Task<Result> CarryCodeUnbind(CarryCodeUnbindInput input)
{ {
bool isOk = false; bool isOk = false;
try try
@@ -231,7 +231,7 @@ namespace Tnb.WarehouseMgr
Logger.LogError($"【CarryCodeUnbind】 {ex.StackTrace}"); Logger.LogError($"【CarryCodeUnbind】 {ex.StackTrace}");
return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.InternalServerError, ex.Message); return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.InternalServerError, ex.Message);
} }
return Task.FromResult(true); return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.OK, "成功");
} }
} }
} }