正式版配置错误的测试
This commit is contained in:
parent
3cea3bae55
commit
aa6482fd29
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue