fix error

This commit is contained in:
邱博亞 2022-02-27 13:12:50 +08:00
parent 7473ab5d78
commit f85df36098
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class AnnouncementsController < ApplicationController
params = @params = OrbitHelper.params
page = @page || Page.where(url: params['url']).first
@enable_search_flag = false
@image_version = 'orignal'
@image_version = 'thumb'
if page.methods.include? 'select_option_items'.to_sym
ModuleApp.all.select{|tmp| tmp.key.to_s=='announcement'}.each do |modile_app|
@show_option_items = modile_app.show_option_items rescue nil

View File

@ -71,7 +71,7 @@ module Announcement
data[key4] = key4_attr
data_item[key_item1] = [value_item1,value_item2,value_item3]
data_item[key_item2] = [value2_item1,value2_item2]
data_item[key1] = key1_attr.reverse
data_item[key1] = key1_attr
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
require File.expand_path('../../../app/models/anns_cache', __FILE__)
if defined?(AnnsCache)