update: 兼容性修复, 防止编辑器报错

Signed-off-by: huyufei <yufei.hu@castbox.fm>
胡宇飞 2024-08-15 13:23:04 +08:00
parent fce6dda997
commit 2129f0f0d9
2 changed files with 4 additions and 3 deletions

View File

@ -37,8 +37,9 @@ namespace Guru
public override bool Equals(object obj)
{
if (obj is not MidWarePropertyDelayedAction action) return false;
return key == action.key;
var mwp = obj as MidWarePropertyDelayedAction;
if (mwp == null) return false;
return key == mwp.key;
}
public override int GetHashCode()

View File

@ -172,7 +172,7 @@ namespace Guru.Network
{
try
{
var arr = raw.Split("|");
var arr = raw.Split('|');
if (arr.Length > 0) _lastReportStatus = arr[0];
if (arr.Length > 1) _lastReportDate = DateTime.Parse(arr[1]);
}