Browse Source

remove duplicate render of journal

pull/324/head
zhangxunhui 3 years ago
parent
commit
3c18d1ee9b
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      app/controllers/journals_controller.rb

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

@@ -55,8 +55,6 @@ class JournalsController < ApplicationController
if success_blockchain == false if success_blockchain == false
normal_status(-1, "评论失败") normal_status(-1, "评论失败")
raise ActiveRecord::Rollback raise ActiveRecord::Rollback
else
render json: {status: 0, message: "评论成功", id: journal.id}
end end


render :json => { status: 0, message: "评论成功", id: journal.id} render :json => { status: 0, message: "评论成功", id: journal.id}


Loading…
Cancel
Save