From 041b5217d00182b2c940da4e371c5adf9847a285 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 1 Aug 2019 16:08:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/memos_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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