|
@@ -61,7 +61,7 @@ func (this *SpeechRecognitionCommonController) RecTaskCallback() {
|
|
|
// @Param request body speech_recognition.SpeechRecognitionSaveReq true "type json string"
|
|
|
// @Success 200 string "操作成功"
|
|
|
// @router /save [post]
|
|
|
-func (this *SpeechRecognitionController) Save() {
|
|
|
+func (this *SpeechRecognitionCommonController) Save() {
|
|
|
br := new(models.BaseResponse).Init()
|
|
|
defer func() {
|
|
|
if br.ErrMsg == "" {
|
|
@@ -70,13 +70,13 @@ func (this *SpeechRecognitionController) Save() {
|
|
|
this.Data["json"] = br
|
|
|
this.ServeJSON()
|
|
|
}()
|
|
|
- sysUser := this.SysUser
|
|
|
- if sysUser == nil {
|
|
|
- br.Msg = "请登录"
|
|
|
- br.ErrMsg = "请登录,SysUser Is Empty"
|
|
|
- br.Ret = 408
|
|
|
- return
|
|
|
- }
|
|
|
+ //sysUser := this.SysUser
|
|
|
+ //if sysUser == nil {
|
|
|
+ // br.Msg = "请登录"
|
|
|
+ // br.ErrMsg = "请登录,SysUser Is Empty"
|
|
|
+ // br.Ret = 408
|
|
|
+ // return
|
|
|
+ //}
|
|
|
var req speech_recognition.SpeechRecognitionSaveReq
|
|
|
if e := json.Unmarshal(this.Ctx.Input.RequestBody, &req); e != nil {
|
|
|
br.Msg = "参数有误"
|