@@ -2,7 +2,6 @@ package online
import (
"errors"
- "fmt"
"github.com/gogf/gf/database/gredis"
"github.com/gogf/gf/util/gconv"
)
@@ -42,7 +41,6 @@ func (mgr *Manager) GetStatus(id string) (*Status, error) {
if err != nil {
return nil, err
}
- fmt.Printf("get status:%v", result.String())
err = result.Struct(status)
@@ -48,7 +48,7 @@ func (a deviceservice) GetDevices(vendorid string, proid, pi, ps int, deviceid s
for _, device := range data {
onlineargs := rpcs.ArgsGetDeviceOnlineStatus{
- Id: device.RecordId,
+ Id: device.DeviceIdentifier,
onlinereply := rpcs.ReplyGetDeviceOnlineStatus{}