微信分享 和 支付宝分享自动调用的设备使用情况

使用微信分享 和 支付宝分享时,微信服务器与阿里服务器自动调用网页情况记录

Linux; Android 8.0; ONEPLUS A3010 Build/OPR1.170623.032; 

iPhone; CPU iPhone OS 10_2_1 like Mac OS X

是本人设备

2018-08-24 14:48:54	http://wanai.unetu.net/	Mozilla/5.0 (Linux; Android 8.0; ONEPLUS A3010 Build/OPR1.170623.032; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/044205 Mobile Safari/537.36 MicroMessenger/6.7.2.1340(0x26070236) NetType/WIFI Language/zh_CN
2018-08-24 14:51:13	http://wanai.unetu.net/	Mozilla/5.0 (Linux; Android 8.0; ONEPLUS A3010 Build/OPR1.170623.032; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/044205 Mobile Safari/537.36 MicroMessenger/6.7.2.1340(0x26070236) NetType/WIFI Language/zh_CN
2018-08-24 14:54:10	/vip/relay_login?invited=&via=mobile	Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML; like Gecko) Mobile/12F70 MicroMessenger/6.1.5 NetType/WIFI
2018-08-24 14:54:10	/vip/relay_login?invited=&via=mobile	Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML; like Gecko) Mobile/12F70 MicroMessenger/6.1.5 NetType/WIFI
2018-08-24 14:54:11	/vip/relay_login?invited=&via=mobile	Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML; like Gecko) Mobile/12F70 MicroMessenger/6.1.5 NetType/WIFI
2018-08-24 14:54:24	http://wanai.unetu.net/vip/relay_login?invited=&via=mobile	Mozilla/5.0 (Linux; Android 8.0; ONEPLUS A3010 Build/OPR1.170623.032; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/044205 Mobile Safari/537.36 MicroMessenger/6.7.2.1340(0x26070236) NetType/WIFI Language/zh_CN
2018-08-24 14:55:24	http://wanai.unetu.net/vip/relay_info?invited=&via=none	Mozilla/5.0 (Linux; Android 4.4.4; Coolpad Y82-520 Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 MicroMessenger/6.5.4.1000 NetType/4G Language/zh_CN
2018-08-24 15:03:38	/vip/relay_login?invited=&via=none	Mozilla/5.0 (Linux; U; Android 8.0.0; zh-cn; ONEPLUS A3010 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.0.0 Mobile Safari/537.36
2018-08-24 15:04:12	http://wanai.unetu.net/vip/relay_login?invited=&via=none	Mozilla/5.0 (Linux; U; Android 8.0.0; zh-cn; ONEPLUS A3010 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.0.0 Mobile Safari/537.36
2018-08-24 15:05:01	http://wanai.unetu.net/branch/palipay_return/vip/0?body=3%E5%BC%A030%E5%85%83%E4%BB%A3%E9%87%91%E5%88%B8&is_success=T&notify_id=RqPnCoPT3K9%252Fvwbh3Ih134mxINV5jZfwxcrQKMegXWc3%252Bfdo4ugy5pN8E8Vf3iVhwW%252Fe&notify_time=2018-08-24+15%3A04%3A55&notify_type=trade_status_sync&out_trade_no=20180824-500001-150344_10095&payment_type=1&seller_id=2088911951177304&service=alipay.wap.create.direct.pay.by.user&subject=29%E5%85%83%E8%B4%AD%E4%B9%B0%E4%B8%87%E7%88%B1%E4%BB%A3%E9%87%91%E5%88%B8%E6%8E%A5%E9%BE%99&total_fee=0.02&trade_no=2018082422001417181000967030&trade_status=TRADE_SUCCESS&sign=JYCBvK68Vfol0lJpLH2ft5l59AirEw3dAWK8FBf4vJgrOR7Qpkv3AsgehR4iaujMSv6%2FJeYS5%2Bl7o2HVEbk42SE6cp9kXRrhQNmjPAPyZey8pQfROTKc9aG4BCuSjmaSYbBAxtz0XMqBPhZh3gFQt%2BcEw5IGEZIOPofk1pn6do0%3D&sign_type=RSA	Mozilla/5.0 (Linux; U; Android 8.0.0; zh-cn; ONEPLUS A3010 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.0.0 Mobile Safari/537.36
2018-08-24 15:05:29	/vip/relay_login?invited=&via=pc	Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16A5364a MicroMessenger/6.7.2 NetType/WIFI Language/zh_CN
2018-08-24 15:05:54	http://wanai.unetu.net/vip/relay_login?invited=&via=pc	Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16A5364a MicroMessenger/6.7.2 NetType/WIFI Language/zh_CN
2018-08-24 15:06:30	http://wanai.unetu.net/vip/relay?via=pc	Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Mobile/14D27 MicroMessenger/6.5.5 NetType/WIFI Language/en
2018-08-24 15:06:56	http://wanai.unetu.net/vip/relay_info?invited=&via=none	Mozilla/5.0 (Linux; Android 4.4.4; HUAWEI ALE-CL00 Build/HuaweiALE-CL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043024 Safari/537.36 MicroMessenger/6.5.4.1000 NetType/4G Language/zh_CN
2018-08-24 15:07:23	http://wanai.unetu.net/	Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1
2018-08-24 15:07:41	http://wanai.unetu.net/vip/relay_login?invited=&via=mobile	Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1
2018-08-24 15:08:09	http://wanai.unetu.net/branch/palipay_return/vip/0?body=3%E5%BC%A030%E5%85%83%E4%BB%A3%E9%87%91%E5%88%B8&is_success=T&notify_id=RqPnCoPT3K9%252Fvwbh3Ih134mxINMlIGTG%252B9kID%252FwiGx4c1FnkV%252BooSK3CMdbONBwJlaco&notify_time=2018-08-24+15%3A08%3A03&notify_type=trade_status_sync&out_trade_no=20180824-500001-150601_10094&payment_type=1&seller_id=2088911951177304&service=alipay.wap.create.direct.pay.by.user&subject=29%E5%85%83%E8%B4%AD%E4%B9%B0%E4%B8%87%E7%88%B1%E4%BB%A3%E9%87%91%E5%88%B8%E6%8E%A5%E9%BE%99&total_fee=0.02&trade_no=2018082422001463961001437388&trade_status=TRADE_SUCCESS&sign=QcnyPraS%2FMLpTcAqns0y%2FWvAZrMBML0zZHKI4%2FpLRYzhcBc0BGvRAXgTEZH1rEgWJOOKB3MuI54OjsXvHNdseme4c1Us4DXfMt4zNZoNhXohWHWbCz7lX2xgQfe2Kd6ex9VPhL3gVS4wR0pjhCedYAbeIkqsuH3sIQAxTh9bPjg%3D&sign_type=RSA	Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1
2018-08-24 15:10:18	/vip/relay_info?invited=DVMTUzNTA5NDQ4OWV5SnBaQ0k2SWpFMk9TSjk=&via=share	Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13E230 ChannelId(3) Nebula PSDType(1) AlipayDefined(nt:WIFI,ws:320|504|2.0) AliApp(AP/9.9.0.000001) AlipayClient/9.9.0.000001 Language/zh-Hans ProductType/dev
2018-08-24 15:10:22	/vip/relay_start?invited=DVMTUzNTA5NDQ4OWV5SnBaQ0k2SWpFMk9TSjk=&via=none	Mozilla/5.0 (Linux; U; Android 8.0.0; zh-CN; ONEPLUS A3010 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.8.8.968 UWS/2.13.2.11 Mobile Safari/537.36 UCBS/2.13.2.11_180731180537 NebulaSDK/1.8.100112 Nebula AlipayDefined(nt:WIFI,ws:411|0|2.625,ac:sp) AliApp(AP/10.1.30.663) AlipayClient/10.1.30.663 Language/zh-Hans useStatusBar/true isConcaveScreen/false
2018-08-24 15:10:46	/vip/relay_info?invited=DVMTUzNTA5NDQ4OWV5SnBaQ0k2SWpFMk9TSjk=&via=share	Mozilla/5.0 (Linux; U; Android 8.0.0; zh-CN; ONEPLUS A3010 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.8.8.968 UWS/2.13.2.11 Mobile Safari/537.36 UCBS/2.13.2.11_180731180537 NebulaSDK/1.8.100112 Nebula AlipayDefined(nt:WIFI,ws:411|0|2.625,ac:sp) AliApp(AP/10.1.30.663) AlipayClient/10.1.30.663 Language/zh-Hans useStatusBar/true isConcaveScreen/false
2018-08-24 15:11:07	http://wanai.unetu.net/vip/relay_info?invited=DVMTUzNTA5NDQ4OWV5SnBaQ0k2SWpFMk9TSjk=&via=share	Mozilla/5.0 (Linux; U; Android 8.0.0; zh-CN; ONEPLUS A3010 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.8.8.968 UWS/2.13.2.11 Mobile Safari/537.36 UCBS/2.13.2.11_180731180537 NebulaSDK/1.8.100112 Nebula AlipayDefined(nt:WIFI,ws:411|0|2.625,ac:sp) AliApp(AP/10.1.30.663) AlipayClient/10.1.30.663 Language/zh-Hans useStatusBar/true isConcaveScreen/false

判断当前浏览器是否为微信内置浏览器 MicroMessenger

通过微信内置浏览器的 User Agent

首先我们通过 PHP 内置的 $_SERVER[“HTTP_USER_AGENT”] server 数组来获取 User Agent。

iPhone 通过微信内置浏览器访问网页时得到 User Agent 是:

Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B329 MicroMessenger/5.0.1

Android 通过微信内置浏览器访问网页时得到 User Agent 是:

Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; GT-S5660 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 MicroMessenger/4.5.255

JS 判断

function is_weixin(){
    var ua = navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i)=="micromessenger") {
        return true;
     } else {
        return false;
    }
}

PHP 判断

function is_weixin(){ 
    if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) {
            return true;
    }    
    return false;
}