eee
This commit is contained in:
@@ -20,7 +20,7 @@ class WxV3AppPayment extends SmallProgram
|
||||
* @return array
|
||||
* @throws
|
||||
*/
|
||||
public function payment(string $orderNo, int $total, string $openId = NULL, string $payer_client_ip = '127.0.0.1'): array
|
||||
public function payment(string $orderNo, int $total, ?string $openId = NULL, string $payer_client_ip = '127.0.0.1'): array
|
||||
{
|
||||
$body = $this->getInitCore($orderNo, $total);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class WxV3NativePayment extends SmallProgram
|
||||
* @throws
|
||||
*/
|
||||
#[ArrayShape(['code_url' => "string"])]
|
||||
public function payment(string $orderNo, int $total, string $openId = NULL, string $payer_client_ip = '127.0.0.1'): array
|
||||
public function payment(string $orderNo, int $total, ?string $openId = NULL, string $payer_client_ip = '127.0.0.1'): array
|
||||
{
|
||||
$body = $this->getInitCore($orderNo, $total);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class WxV3Payment extends SmallProgram
|
||||
* @return array
|
||||
* @throws
|
||||
*/
|
||||
public function payment(string $orderNo, int $total, string $openId = NULL, string $payer_client_ip = '127.0.0.1'): array
|
||||
public function payment(string $orderNo, int $total, ?string $openId = NULL, string $payer_client_ip = '127.0.0.1'): array
|
||||
{
|
||||
$body = $this->getInitCore($orderNo, $total);
|
||||
$body['payer'] = ['openid' => $openId];
|
||||
|
||||
Reference in New Issue
Block a user