Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b92ea7df9f |
@@ -10,21 +10,20 @@ namespace wchat\qq;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Kiri\Client;
|
use Kiri\Client;
|
||||||
use wchat\common\HttpClient;
|
|
||||||
use wchat\common\Result;
|
use wchat\common\Result;
|
||||||
use wchat\common\Help;
|
use wchat\common\Help;
|
||||||
|
|
||||||
class Recharge extends SmallProgram
|
class Recharge extends SmallProgram
|
||||||
{
|
{
|
||||||
private $money = 0;
|
private float $money = 0;
|
||||||
|
|
||||||
private $orderNo;
|
private string $orderNo;
|
||||||
|
|
||||||
private $data = [];
|
private array $data = [];
|
||||||
|
|
||||||
private $spill_create_ip = '';
|
private string $spill_create_ip = '';
|
||||||
|
|
||||||
private $uniformer = 'https://qpay.qq.com/cgi-bin/pay/qpay_unified_order.cgi';
|
private string $uniformer = '/cgi-bin/pay/qpay_unified_order.cgi';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $value
|
* @param $value
|
||||||
|
|||||||
+1
-1
@@ -431,7 +431,7 @@ class Redhat extends SmallProgram
|
|||||||
*/
|
*/
|
||||||
public function redEnvelopes(): Result
|
public function redEnvelopes(): Result
|
||||||
{
|
{
|
||||||
$client = new Client('qpay.qq.com', 443, true);
|
$client = new Client('api.qpay.qq.com', 443, true);
|
||||||
$client->withHeader(['Content-Type' => 'application/json']);
|
$client->withHeader(['Content-Type' => 'application/json']);
|
||||||
$client->post($this->sendUrl, $this->generate());
|
$client->post($this->sendUrl, $this->generate());
|
||||||
$client->close();
|
$client->close();
|
||||||
|
|||||||
Reference in New Issue
Block a user