Default Changelist

This commit is contained in:
2023-08-18 15:31:47 +08:00
parent 72a7c58bc4
commit b92ea7df9f
2 changed files with 81 additions and 82 deletions
+5 -6
View File
@@ -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
View File
@@ -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();