Explorar o código

fix: 语音识别导出

hsun hai 1 ano
pai
achega
c27037f8ae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/speech_recognition/speech_recognition.go

+ 1 - 1
controllers/speech_recognition/speech_recognition.go

@@ -953,7 +953,7 @@ func (this *SpeechRecognitionController) Export() {
 		br.Ret = 408
 		return
 	}
-	var req speech_recognition.SpeechRecognitionContentExportReq
+	req := new(speech_recognition.SpeechRecognitionContentExportReq)
 	if e := this.ParseForm(req); e != nil {
 		br.Msg = "参数有误"
 		br.ErrMsg = "参数解析失败, Err: " + e.Error()