|
|
@@ -164,10 +164,9 @@ func (this *SubscribeTaskService) Task() error {
|
|
|
default:
|
|
|
return errors.New("unknown module")
|
|
|
}
|
|
|
-
|
|
|
- this.Timestamp = util.GetNowSecond() + 5*1000
|
|
|
+
|
|
|
if this.Status {
|
|
|
- logger.Info("Subscribe task append key %s, device id %s duration %d", key, this.DeviceId, this.Timestamp/1000)
|
|
|
+ logger.Info("Subscribe task append key %s, device id %s timestamp %d, task_time %s", key, this.DeviceId, this.Timestamp, util.TimeStr2DateTime(this.Timestamp, util.TimeLayout))
|
|
|
task.SubscribeTask.Append(key, this.DeviceId, this.Timestamp, this.Module)
|
|
|
} else {
|
|
|
task.SubscribeTask.Remove(key)
|