升级通知

dev_forum
daiao 5 years ago
parent 3866a135be
commit a6cade88c7

@ -3,6 +3,12 @@ class UsersController < ApplicationController
before_action :load_user, only: [:show, :homepage_info]
before_action :check_user_exist, only: [:show, :homepage_info]
# 检查是否更新
def system_update
@notice = SystemUpdateNotice.last
end
def show;end
def update

@ -0,0 +1,6 @@
if @notice && @notice.end.time < Time.now
json.system_update true
json.(@notice, :subject, :notes, :start_time, :end_time)
else
json.system_update false
end
Loading…
Cancel
Save