> pc端自动识别调整到移动端url
```
<script type="text/javascript">
var web_site_mobile_url = '{$system_config.web_site_mobileurl}';
if (window.location.toString().indexOf('pref=padindex') != -1) {} else {
if (/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (
/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/
.test(navigator.userAgent))) {
if (window.location.href.indexOf("?mobile") < 0) {
try {
if (/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
window.location.href = web_site_mobile_url + location.pathname + location.search;
} else if (/iPad/i.test(navigator.userAgent)) {} else {}
} catch (e) {}
}
}
}
</script>
```
> 自定义文章作者推广码调用
```
<script type="text/javascript">
var user_scode = "{:get_scode_by_uid($uid, 'pc')}";
</script>
```