lib/admqr_knife.rb in admqr_knife-0.1.2 vs lib/admqr_knife.rb in admqr_knife-0.1.3

- old
+ new

@@ -22,19 +22,22 @@ end def visit(unique_code:, **options) raise 'unique_code 不能为空' if unique_code.to_s == '' - ua = options[:ua] + ua = options[:ua] || options[:client_ua] referer = options[:referer] tag = options[:tag] new_to_visit = options[:new_to_visit] remote_ip = options[:remote_ip] + extra = options[:extra] CubeService.post('/api/knifes/statis', { unique_code: unique_code, client_ua: ua, referer: referer, + extra: extra, tag: tag, + extra: extra, new_to_visit: new_to_visit, remote_ip: remote_ip }.reject! { |_k, v| v.nil? }) rescue StandardError => e logger.error e.message end