From ebd0797b3712a3e9c68662376806fffc109f0428 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 7 Nov 2019 09:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index d61634f4d..488289815 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -289,7 +289,7 @@ class CoursesController < ApplicationController next_inform = inform.next_inform ActiveRecord::Base.transaction do if next_inform - render_error('已经到达最底部') + render_error('已经到达最顶部') else inform.update_attribute(:position, (position + 1)) next_inform.update_attribute(:position, last_inform.position - 1) @@ -303,7 +303,7 @@ class CoursesController < ApplicationController last_inform = inform.last_inform ActiveRecord::Base.transaction do if last_inform - render_error('已经到达最顶部') + render_error('已经到达最底部') else inform.update_attribute(:position, (position - 1)) last_inform.update_attribute(:position, last_inform.position + 1)