Explorar el Código

问答首页过滤出已回答的提问

xiexiaoyuan hace 2 años
padre
commit
ea3ef219a2
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      services/community/question.go

+ 4 - 0
services/community/question.go

@@ -52,6 +52,10 @@ func GetQuestionList(pageIndex, pageSize, onlyMine, chartPermissionId, replyStat
 				condition += " and reply_status = 3"
 			}
 		}
+	}else{
+		if replyStatus == 3 {
+			condition += " and reply_status = 3"
+		}
 	}
 
 	if chartPermissionId > 0 {