给Controller添加userAgent和referrer方法