diff --git a/WebService/WMSWebService.asmx.cs b/WebService/WMSWebService.asmx.cs index e070b6d..d8c119e 100644 --- a/WebService/WMSWebService.asmx.cs +++ b/WebService/WMSWebService.asmx.cs @@ -85,6 +85,17 @@ namespace Webservice Context.Response.Write(res); } + [WebMethod] + [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] + public string WMSSprayingForCSForTest(string barcode, int isOK) + { + string errorReason = string.Empty; + bool b = WMSSprayingForCS(barcode, isOK, out errorReason); + if (string.IsNullOrEmpty(errorReason)) + return "true"; + return errorReason; + } + /// /// 调用WMS接口03 /// lx 20190610,wff2022-04-19修改,报废由0变为2