message: fix terminal
diff: @@ -154,8 +154,14 @@ class Statistic {
  this.clearPrevDurationRecord()
  })
  }
  - const terminalRecord = this.getRecord('terminal')
  - this.sendTerminal(terminalRecord)
  + const loginUser = this.parse(this.getItemByLocalStorage('loginUser'))
  + this.setUserDate({
  + user_id: loginUser ? loginUser.id : void 0,
  + email: loginUser ? loginUser.email : ''
  + })
  + this.setTerminals({}, (data) => {
  + this.sendTerminal(data)
  + })
  }
  public isTimeout = (callback?: (data: IDuration) => any) => {
  @@ -319,6 +325,17 @@ class Statistic {
  }
  }
  + public setTerminals = (options?: Partial<ITerminal>, callback?: (data: ITerminal) => any) => {
  + this.terminalRecord = {
  + ...this.terminalRecord,
  + ...options,
  + ...this.userData
  + }
  + if (typeof callback === 'function') {
  + callback(this.terminalRecord)
  + }
  + }
  +
  public setDurations = (options?: Partial<IDuration>, callback?: (data: IDuration) => any) => {
  this.durationRecord = {
  ...this.durationRecord,
  