mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
正式版配置错误的测试
This commit is contained in:
@@ -15,11 +15,16 @@ class Admins::SaveLaboratorySettingService < ApplicationService
|
||||
laboratory_setting.footer = strip params[:footer]
|
||||
|
||||
laboratory.save!
|
||||
Rails.logger.info("####_____name____E####{laboratory_setting.name}")
|
||||
Rails.logger.info("####_____navbar____E####{laboratory_setting.navbar}")
|
||||
Rails.logger.info("####_____footer___E####{laboratory_setting.footer}")
|
||||
|
||||
laboratory_setting.save!(:validate =>false)
|
||||
begin
|
||||
unless laboratory_setting.save!
|
||||
Rails.logger.info("######__ddddd________#######{laboratory_setting.errors.messages}")
|
||||
end
|
||||
rescue => e
|
||||
Rails.logger.info("######__________#######{e}")
|
||||
end
|
||||
|
||||
|
||||
|
||||
deal_image_file
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user