mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-04 13:02:53 +08:00
pay debug
This commit is contained in:
@ -261,12 +261,11 @@ class WeixinMini
|
||||
}
|
||||
|
||||
// 微信中打开
|
||||
// $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'];
|
||||
// $type_all['h5'] = $type_all['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['h5'];
|
||||
}
|
||||
return isset($type_all[APPLICATION_CLIENT_TYPE]) ? $type_all[APPLICATION_CLIENT_TYPE] : '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user