11
jinxin
2025-06-11 6325ef722e9f6a47779054aecb46025fdc864a9a
C#/HH.WCS.Mobox3.WeiLi/api/ApiHelper.cs
@@ -112,7 +112,7 @@
        {
            var result = new WeiLiResult();
            var db = new SqlHelper<object>().GetInstance();
            var cntrweight = model.cntrWeight == 1 ? 2 : model.cntrWeight == 2 ? 3 : model.cntrWeight == 3 ? 11 : model.cntrWeight == 4 ? 30 : model.cntrWeight == 5 ? 150 : 0;
            var cntrweight = model.cntrWeight;
            if (!string.IsNullOrEmpty(model.startBit) && !string.IsNullOrEmpty(model.endBit))
            {
                if (!string.IsNullOrEmpty(model.TaskNo))
@@ -947,6 +947,8 @@
            var db = new SqlHelper<object>().GetInstance();
            var result = new PlcSendTaskres { requestPk = model.requestPk, code = "0" };
            string message = "";
            try
            {
            if (model.noticeType == "0" || model.noticeType == "ERROR")
            {
                //称重
@@ -1076,6 +1078,14 @@
                    result.msg = "该任务编号不存在";
                }
            }
            }
            catch (Exception ex)
            {
                LogHelper.Error($"WCS回报任务失败 异常信息{ex.Message}", ex);
                result.code = "1";
                result.msg = $"WCS回报任务失败 异常信息{ex.Message}";
            }
            return result;
        }