From c2ca787467c591d707128b8a5fc588cc8d1112d4 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Tue, 8 Jan 2019 14:23:14 +0800 Subject: [PATCH] pay debug --- extend/payment/WeixinMini.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/extend/payment/WeixinMini.php b/extend/payment/WeixinMini.php index fa60f14c7..527dbd29f 100644 --- a/extend/payment/WeixinMini.php +++ b/extend/payment/WeixinMini.php @@ -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] : ''; }