修改发送错误

master
zby 1 month ago
parent d4f7d6a06b
commit fca63f2853

@ -18,6 +18,10 @@ namespace Service.Charger.Handler;
public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler<BatteryStatusReportedReq>, IBaseHandler public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler<BatteryStatusReportedReq>, IBaseHandler
{ {
private readonly BinInfoRepository _binInfoRepository; private readonly BinInfoRepository _binInfoRepository;
public BatteryStatusReportedReqHandler(BinInfoRepository binInfoRepository)
{
_binInfoRepository = binInfoRepository;
}
private static readonly ILog Log =LogManager.GetLogger(typeof(BatteryStatusReportedReqHandler)); private static readonly ILog Log =LogManager.GetLogger(typeof(BatteryStatusReportedReqHandler));
public BinInfoRepository BinInfoRepository { get; set; } public BinInfoRepository BinInfoRepository { get; set; }

@ -53,11 +53,11 @@ public class PlcController : ControllerBase
} }
return Result<bool>.Fail("充电机未连接"); return Result<bool>.Fail("充电机未连接");
} }
///// <summary> /// <summary>
///// 发送电池充电状态 /// 发送电池充电状态
///// </summary> /// </summary>
///// <param name="sn">充电机编号</param> /// <param name="sn">充电机编号</param>
///// <param name="msg">消息</param> /// <param name="msg">消息</param>
//[HttpGet] //[HttpGet]
//[Route("SendWhetherChargedReq")] //[Route("SendWhetherChargedReq")]
//public Result<bool> SendWhetherChargedResq() //public Result<bool> SendWhetherChargedResq()

Loading…
Cancel
Save