验证中...
判断客户端是微信,还是支付宝
Raw Copy
function IsWeixinOrAlipay(){
//判断是不是微信
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) {
return "WeiXIN";
}
//判断是不是支付宝
if (strpos($_SERVER['HTTP_USER_AGENT'], 'AlipayClient') !== false) {
return "Alipay:true";
}
//哪个都不是
return "false";
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search

Gitee_you_jiang_zheng_wen Zheng_wen_close