dever 6 years ago
parent
commit
8831cd2ee8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/Wechat.php

+ 2 - 0
lib/Wechat.php

@@ -92,6 +92,7 @@ class Wechat extends Core
 		if (isset($order['prepay_id'])) {
 
 			$string = 'appId='.$this->config->GetAppId().'&nonceStr='.$order['nonce_str'].'&package=prepay_id='.$order['prepay_id'].'&signType='.$order['sign_type'].'&timeStamp='.$order['time'].'&key='.$this->config->GetKey();
+			$this->log('支付签名-applet', $string);
 			if($order['sign_type'] == "MD5"){
 				$string = md5($string);
 			} else {
@@ -121,6 +122,7 @@ class Wechat extends Core
 			$string['timestamp'] = $order['time'];
 			ksort($string);
 			$string = http_build_query($string);
+			$this->log('支付签名-app', $string);
 			if($order['sign_type'] == "MD5"){
 				$string = md5($string);
 			} else {