From 692cc642586e5c0a44e3f5cbf47d9f07731a5a66 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Fri, 24 May 2019 14:44:11 +0800 Subject: [PATCH] wx pay debug --- application/index/view/default/orderaftersale/index.html | 2 ++ extend/payment/Weixin.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/application/index/view/default/orderaftersale/index.html b/application/index/view/default/orderaftersale/index.html index 3185bb699..c5517134a 100644 --- a/application/index/view/default/orderaftersale/index.html +++ b/application/index/view/default/orderaftersale/index.html @@ -95,6 +95,7 @@ + @@ -106,6 +107,7 @@ {{if !empty($data_list)}} {{foreach $data_list as $v}} +
商品信息 申请信息 凭证 状态
商品信息 类型:{{$v.type_text}}
原因:{{$v.reason}}
diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index 14967db24..28c2e9bc9 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -280,7 +280,7 @@ 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['h5']; + $type_all['pc'] = $type_all['weixin']; } return isset($type_all[APPLICATION_CLIENT_TYPE]) ? $type_all[APPLICATION_CLIENT_TYPE] : ''; }