|
@@ -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 {
|