update: 兼容性修复, 防止编辑器报错
Signed-off-by: huyufei <yufei.hu@castbox.fm>
parent
fce6dda997
commit
2129f0f0d9
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue