From a21c12f7751f6481b2155d54a9f46e4bd09b51a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sat, 28 Sep 2024 21:41:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=A7=84=E8=8C=83=EF=BC=8C=E5=85=BC=E5=AE=B9=20PHP5.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WePayV3/Coupon.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/WePayV3/Coupon.php b/WePayV3/Coupon.php index eeb8f4f..4d9f8d4 100644 --- a/WePayV3/Coupon.php +++ b/WePayV3/Coupon.php @@ -47,7 +47,7 @@ class Coupon extends BasicWePay * @return array|string * @throws InvalidResponseException */ - public function stocksStart(string $stock_id , string $stock_creator_mchid) + public function stocksStart($stock_id, $stock_creator_mchid) { $path = "/v3/marketing/favor/stocks/{$stock_id}/start"; return $this->doRequest('POST', $path, json_encode(['stock_creator_mchid' => $stock_creator_mchid]), true); @@ -60,7 +60,7 @@ class Coupon extends BasicWePay * @return array|string * @throws InvalidResponseException */ - public function stocksPause(string $stock_id , string $stock_creator_mchid) + public function stocksPause($stock_id, $stock_creator_mchid) { $path = "/v3/marketing/favor/stocks/{$stock_id}/pause"; return $this->doRequest('POST', $path, json_encode(['stock_creator_mchid' => $stock_creator_mchid]), true); @@ -73,7 +73,7 @@ class Coupon extends BasicWePay * @return array|string * @throws InvalidResponseException */ - public function stocksRestart(string $stock_id , string $stock_creator_mchid) + public function stocksRestart($stock_id, $stock_creator_mchid) { $path = "/v3/marketing/favor/stocks/{$stock_id}/restart"; return $this->doRequest('POST', $path, json_encode(['stock_creator_mchid' => $stock_creator_mchid]), true); @@ -86,7 +86,7 @@ class Coupon extends BasicWePay * @return array|string * @throws InvalidResponseException */ - public function stocksDetail(string $stock_id , string $stock_creator_mchid) + public function stocksDetail($stock_id, $stock_creator_mchid) { $path = "/v3/marketing/favor/stocks/{$stock_id}?stock_creator_mchid={$stock_creator_mchid}"; return $this->doRequest('GET', $path, '', true); @@ -122,7 +122,7 @@ class Coupon extends BasicWePay * @return array|string * @throws InvalidResponseException */ - public function couponsSend( array $param) + public function couponsSend(array $param) { $path = "/v3/marketing/favor/users/{$param['openid']}/coupons"; return $this->doRequest('POST', $path, json_encode($param), true); @@ -148,11 +148,9 @@ class Coupon extends BasicWePay * @return array|string * @throws InvalidResponseException */ - public function couponsDetail( string $openid , string $coupon_id , string $appid) + public function couponsDetail($openid, $coupon_id, $appid) { $path = "/v3/marketing/favor/users/{$openid}/coupons/{$coupon_id}?appid={$appid}"; - return $this->doRequest('GET', $path,'', true); + return $this->doRequest('GET', $path, '', true); } - - }