diff --git a/app/controllers/memos_controller.rb b/app/controllers/memos_controller.rb index d950fe1c8..0475eb0da 100644 --- a/app/controllers/memos_controller.rb +++ b/app/controllers/memos_controller.rb @@ -85,7 +85,7 @@ class MemosController < ApplicationController params[:tags].each do |tag| MemoTagRepertoire.create!(memo_id: @memo.id, tag_repertoire_id: tag) end - normal_status("帖子创建成功") + render :json => {memo_id: @memo.id, status: 0, message: "帖子创建成功"} rescue Exception => e tip_exception("帖子创建失败,原因:#{e}") raise ActiveRecord::Rollback