public function order_source() { $useragent = strtolower($_SERVER["HTTP_USER_AGENT"]); // 微信 $is_weixin = strripos($useragent,'micromessenger'); if($is_weixin){ //echo '微信'; exit; echo '<script language="javascript" type="text/javascript"> window.location.; exit; } // iphone $is_iphone = strripos($useragent,'iphone'); if($is_iphone){ $this->display("Codes/ios"); echo '<script language="javascript" type="text/javascript"> window.location.; exit; } // android $is_android = strripos($useragent,'android'); if($is_android){ $this->display("Codes/android"); echo '<script language="javascript" type="text/javascript"> window.location.; exit; } // ipad $is_ipad = strripos($useragent,'ipad'); if($is_ipad){ echo 'ipad'; exit; } // ipod $is_ipod = strripos($useragent,'ipod'); if($is_ipod){ echo 'ipod'; exit; } // pc电脑 $is_pc = strripos($useragent,'windows nt'); if($is_pc){ echo 'pc'; exit; } echo 'other'; }
點擊查看更多內(nèi)容
為 TA 點贊
評論
評論
共同學(xué)習(xí),寫下你的評論
評論加載中...
作者其他優(yōu)質(zhì)文章
正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦