二维码

经常会看到有产品的 Android / iOS 下载是分成2个二维码 为何不去后台判断下? 例 PHP

$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
    $type = 'other';
    if(strpos($ua, オンライン カジノ  'iphone') || strpos($ua, 'ipad')){
        $type = 'ios';
    }
    if(strpos($ua, 'android')){
        $type = 'android';
    }
    return $type;

Leave a Reply

Your email address will not be published. Required fields are marked *