zoukankan      html  css  js  c++  java
  • 判断当前是否是微信浏览器,还是APP客户端

    /**
    * 判断当前是否是微信浏览器,还是APP客户端
    */
    function isWeixinEsz()
    {

    if (strpos($_SERVER['HTTP_USER_AGENT'],

    'MicroMessenger') !== false) {

    return 1;
    } else {
    $isApp = hinkCookie::get('isApp');
    if($isApp){
    return 2;
    } else {
    $isApp = hinkRequest::instance()->get('isAPP',false);
    if($isApp){
    hinkCookie::set('isApp',1);
    return 2;
    } else {
    return 0;
    }
    }
    }
    return 0;
    }
  • 相关阅读:
    poj 2251
    poj 1321
    poj 2777
    poj 3468
    poj 2318
    javascript
    buhui
    swift 构造器
    mac上不了网
    字体
  • 原文地址:https://www.cnblogs.com/2019gdiceboy/p/11089947.html
Copyright © 2011-2022 走看看