Browse Source

修改创建评论返回的id

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
09f10ff653
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/journals_controller.rb

+ 2
- 2
app/controllers/journals_controller.rb View File

@@ -43,8 +43,8 @@ class JournalsController < ApplicationController
end

# @issue.project_trends.create(user_id: current_user.id, project_id: @project.id, action_type: "journal")
normal_status(0, "评论成功")
render :json => { status: 0, message: "评论成功", id: journal.id}
# normal_status(0, "评论成功")
else
normal_status(-1, "评论失败")
end


Loading…
Cancel
Save