diff --git a/third_party/interlock/beijing11/msg.go b/third_party/interlock/beijing11/msg.go index de06b10..3c48962 100644 --- a/third_party/interlock/beijing11/msg.go +++ b/third_party/interlock/beijing11/msg.go @@ -2,8 +2,8 @@ package beijing11 import ( "encoding/binary" + "errors" "fmt" - "joylink.club/bj-rtsts-server/sys_error" ) // FromInterlockFrame 来自联锁的数据帧 @@ -27,7 +27,7 @@ type FromInterlockFrame struct { func (f *FromInterlockFrame) Decode(data []byte) error { f.Len = binary.BigEndian.Uint16(data[1:3]) if int(f.Len) != len(data)-3 { - return sys_error.New(fmt.Sprintf("%s数据长度不对[%d:%d]", logTag, f.Len, len(data)-3)) + return errors.New(fmt.Sprintf("%s数据长度不对[%d:%d]", logTag, f.Len, len(data)-3)) } f.InterlockCode = binary.BigEndian.Uint16(data[3:5]) f.WaysideCode = binary.BigEndian.Uint16(data[5:7])