From 25b47108acdca8d31e444d755ae5a6d952b8d738 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 18 Dec 2020 10:24:46 +0800 Subject: [PATCH] Update BasicWePay.php --- WePayV3/Contracts/BasicWePay.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/WePayV3/Contracts/BasicWePay.php b/WePayV3/Contracts/BasicWePay.php index 317d6b9..7cc49f4 100644 --- a/WePayV3/Contracts/BasicWePay.php +++ b/WePayV3/Contracts/BasicWePay.php @@ -107,9 +107,7 @@ abstract class BasicWePay public function doRequest($method, $pathinfo, $jsondata = '', $verify = false) { list($time, $nonce) = [time(), uniqid() . rand(1000, 9999)]; - $signstr = join("\n", [ - $method, $pathinfo, $time, $nonce, $jsondata, '', - ]); + $signstr = join("\n", [$method, $pathinfo, $time, $nonce, $jsondata, '']); // 生成数据签名TOKEN $token = sprintf('mchid="%s",nonce_str="%s",timestamp="%d",serial_no="%s",signature="%s"', $this->config['mch_id'], $nonce, $time, $this->config['cert_serial'], $this->signBuild($signstr)