Explorar el Código

remove outdated 'response' field

master
Patrick Peng Sun hace 8 años
padre
commit
631c8e7d6a
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +2
    -2
      chatSession.go
  2. +1
    -1
      chatState.go

+ 2
- 2
chatSession.go Ver fichero

log.Printf("current procedure after command = %s", ss.Procedure) log.Printf("current procedure after command = %s", ss.Procedure)
if !processed { // transfer to Customer Service (kf) if !processed { // transfer to Customer Service (kf)
//start transfer //start transfer
ss.state.response, _ = BuildKFTransferAnyOneMsg(openID)
v.replyXML(ss.state.response)
xml, _ := BuildKFTransferAnyOneMsg(openID)
v.replyXML(xml)
kfSendTxt(openID, "已转接校友会理事会,稍后答复您") kfSendTxt(openID, "已转接校友会理事会,稍后答复您")
} }
} }

+ 1
- 1
chatState.go Ver fichero

Data map[string]string `json:"Data"` //the state save some data for later usage Data map[string]string `json:"Data"` //the state save some data for later usage


//runtime memory only //runtime memory only
response string //被动回复消息的内容
//response string //被动回复消息的内容
} }


func createEmptyState(openID, procedure string, expireInSeconds int32) chatState { func createEmptyState(openID, procedure string, expireInSeconds int32) chatState {

Cargando…
Cancelar
Guardar