wx pay debug

feat/task1-c-wallet
devil_gong 2019-05-24 18:03:44 +08:00
parent 9de838aa79
commit d6b42fa935
1 changed files with 4 additions and 4 deletions

View File

@ -288,10 +288,10 @@ class Weixin
// 微信中打开
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
if(!empty($user_agent) && strpos($user_agent, 'MicroMessenger') !== false)
{
$type_all['pc'] = $type_all['weixin'];
}
// if(!empty($user_agent) && strpos($user_agent, 'MicroMessenger') !== false)
// {
// $type_all['pc'] = $type_all['weixin'];
// }
return isset($type_all[APPLICATION_CLIENT_TYPE]) ? $type_all[APPLICATION_CLIENT_TYPE] : '';
}