This commit is contained in:
gcw_MV9p2JJN 2025-12-31 13:59:14 +08:00
parent 06e1e515fb
commit 6dda9dc592
2 changed files with 4 additions and 4 deletions

View File

@ -213,8 +213,8 @@ public class WorkorderProgressService : BaseService<ProWorkorder>, IWorkorderPro
await _mqttHelper.ConnectAsync();
// 发送多条消息
await _mqttHelper.PublishMessageAsync("MES/Workorder/Start", jsonString);
string line = handleWorkorder.LineCode ==null?"-1": handleWorkorder.LineCode;
await _mqttHelper.PublishMessageAsync("MES/Workorder/Start/handleWorkorder/"+ line, jsonString);
// 断开连接
await _mqttHelper.DisconnectAsync();

View File

@ -239,8 +239,8 @@ namespace DOAN.Service.Mobile
await _mqttHelper.ConnectAsync();
// 发送多条消息
await _mqttHelper.PublishMessageAsync("MES/Workorder/Start", jsonString);
string line = handleWorkorder.LineCode == null ? "-1" : handleWorkorder.LineCode;
await _mqttHelper.PublishMessageAsync("MES/Workorder/Start/handleWorkorder/" + line, jsonString);
// 断开连接
await _mqttHelper.DisconnectAsync();