diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index 2193813..1ed97ed 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -132,7 +132,7 @@ class wxpay // 获取微信支付需要的其他参数 $payinfo = $response_data['payinfo']; $payinfo = json_decode($payinfo, true); - // var_dump($payinfo); + var_dump($payinfo); $appId = $payinfo['appId']; $timeStamp = $payinfo['timeStamp']; $nonceStr = $payinfo['nonceStr']; @@ -236,20 +236,7 @@ class wxpay ) }; function callpay() - { - console.log(123456); - console.log(typeof WeixinJSBridge); - - wx.miniProgram.getEnv(function(res) { - if(res.miniprogram){ - // true代表在小程序里 - console.log(4567893); - }else{ - //false代表在公众号里 - console.log(123486789); - } - }) - + { if (typeof WeixinJSBridge == "undefined") { if( document.addEventListener )