wx pay debug

feat/task1-c-wallet
devil_gong 2019-05-24 18:07:32 +08:00
parent 2c63d3856f
commit 54e9eb0f94
1 changed files with 1 additions and 3 deletions

View File

@ -287,9 +287,7 @@ class Weixin
}
// 微信中打开
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
var_dump($user_agent);die;
if(!empty($user_agent) && strpos($user_agent, 'MicroMessenger') !== false)
if(!empty($_SERVER['HTTP_USER_AGENT']) && stripos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false)
{
$type_all['pc'] = $type_all['weixin'];
}