config = Rails.application.config_for(:aliyun_vod) AliyunVod.access_key_id = config['access_key_id'] AliyunVod.access_key_secret = config['access_key_secret'] AliyunVod.base_url = config['base_url'] || 'http://vod.cn-shanghai.aliyuncs.com'.freeze AliyunVod.cate_id = config['cate_id'] AliyunVod.callback_url = config['callback_url'] AliyunVod.signature_key = config['signature_key']