主包部分数据调整

master
CZ 4 months ago
parent 8b79aae879
commit ad39e16c63

@ -45,7 +45,6 @@ public class StationReadyState : IState
} }
//plc是否是远程模式 //plc是否是远程模式
var plcIsAuto = PlcIsAuto(machine); var plcIsAuto = PlcIsAuto(machine);
if (InvokeStatus.Done != plcIsAuto) if (InvokeStatus.Done != plcIsAuto)
{ {

@ -93,7 +93,15 @@ public class StaticStationInfo
public static bool TboxStateCarList public static bool TboxStateCarList
{ {
get => bool.Parse(Resolve(StationParamConst.TboxStateCarList)); get
{
if (Resolve(StationParamConst.TboxStateCarList) == null)
{
return false;
}
else
return bool.Parse(Resolve(StationParamConst.TboxStateCarList));
}
set => Set(StationParamConst.TboxStateCarList, value); set => Set(StationParamConst.TboxStateCarList, value);
} }

@ -29,14 +29,7 @@ namespace Service.Mgr
EnableMd5 = false, EnableMd5 = false,
}; };
} }
public async Task<SysFile> UploadAvatar([Required] IFormFile file, string path)
{
var sysFile = await HandleUploadFile(file, path, _imageType);
return sysFile;
}
/// <summary> /// <summary>
/// 上传文件 /// 上传文件
/// </summary> /// </summary>

Loading…
Cancel
Save