修改ims/base_controller.rb