Selaa lähdekoodia

Merge branch 'hotfix/ppt_edit_0805' into debug

hsun 8 kuukautta sitten
vanhempi
commit
a8d9f7d48b
2 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 3 3
      controllers/ppt_english.go
  2. 3 3
      controllers/ppt_v2.go

+ 3 - 3
controllers/ppt_english.go

@@ -1117,8 +1117,8 @@ func (this *PptEnglishController) TitleCheck() {
 }
 
 // Editing
-// @Title 标记编辑状态
-// @Description 标记编辑状态
+// @Title 标记/查询编辑状态
+// @Description 标记/查询编辑状态
 // @Param	request	body models.PPTEditingReq true "type json string"
 // @Success 200 Ret=200 操作成功
 // @router /editing [post]
@@ -1149,7 +1149,7 @@ func (this *PptEnglishController) Editing() {
 		br.Msg = "参数有误"
 		return
 	}
-	if req.Status <= 0 {
+	if req.Status < 0 {
 		br.Msg = "标记状态异常"
 		return
 	}

+ 3 - 3
controllers/ppt_v2.go

@@ -1292,8 +1292,8 @@ func (this *PptV2Controller) TitleCheck() {
 }
 
 // Editing
-// @Title 标记编辑状态
-// @Description 标记编辑状态
+// @Title 标记/查询编辑状态
+// @Description 标记/查询编辑状态
 // @Param	request	body models.PPTEditingReq true "type json string"
 // @Success 200 Ret=200 操作成功
 // @router /editing [post]
@@ -1324,7 +1324,7 @@ func (this *PptV2Controller) Editing() {
 		br.Msg = "参数有误"
 		return
 	}
-	if req.Status <= 0 {
+	if req.Status < 0 {
 		br.Msg = "标记状态异常"
 		return
 	}