Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b92ea7df9f | |||
| 72a7c58bc4 | |||
| e1959752e1 |
+1
-1
@@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">= 8.0",
|
"php": ">= 8.0",
|
||||||
"game-worker/kiri-client": "dev-master",
|
"game-worker/kiri-client": "~v2.6",
|
||||||
"game-worker/kiri-container": "~v1.9",
|
"game-worker/kiri-container": "~v1.9",
|
||||||
"psr/container": "*"
|
"psr/container": "*"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -549,7 +549,7 @@ class Config
|
|||||||
* @param array $configs
|
* @param array $configs
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setConfigs(array $configs): static
|
protected function setConfigs(array $configs): static
|
||||||
{
|
{
|
||||||
if (empty($configs)) {
|
if (empty($configs)) {
|
||||||
return $this;
|
return $this;
|
||||||
|
|||||||
@@ -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