Commit b0324b21 authored by 马志宇's avatar 马志宇

Merge branch 'master' into develop

parents 9b2ca081 d59ff08c
......@@ -216,7 +216,7 @@ public class ConsultApi {
public ConsultDetailVo answer(@RequestHeader("passport") String anchorPassport,
@RequestParam("consult_id") Long consultId,
@RequestParam("answer") String answer,
@RequestParam("public_type") Integer publicType) {
@RequestParam(value = "public_type",defaultValue = "0") Integer publicType) {
Consult consult = consultDs.queryById(consultId);
Preconditions.checkArgument(consult != null, "未找到提问信息");
Preconditions.checkArgument(StringUtils.isBlank(consult.getAnswerPassport()), "该提问已忽略或回答");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment