From e8d7d27c548c96054d9331dd2999b890d918788c Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Wed, 22 Dec 2021 17:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tool/GameResource/SlzqClient.class.php | 27 +++++++++++++++++++ .../Tool/GameResource/XlqyClient.class.php | 3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Application/Base/Tool/GameResource/SlzqClient.class.php diff --git a/Application/Base/Tool/GameResource/SlzqClient.class.php b/Application/Base/Tool/GameResource/SlzqClient.class.php new file mode 100644 index 000000000..14932c6c1 --- /dev/null +++ b/Application/Base/Tool/GameResource/SlzqClient.class.php @@ -0,0 +1,27 @@ + ['uri' => '/apip/payWM122S00/emRebate', 'method' => 'post'], + 'send-testing' => ['uri' => '/apip/payWM122S00/testingOrder', 'method' => 'post'], + 'send-props' => ['uri' => '/apip/payWM122S00/buyProp', 'method' => 'post'], + ]; +} \ No newline at end of file diff --git a/Application/Base/Tool/GameResource/XlqyClient.class.php b/Application/Base/Tool/GameResource/XlqyClient.class.php index d3d687fd7..fa22f516e 100644 --- a/Application/Base/Tool/GameResource/XlqyClient.class.php +++ b/Application/Base/Tool/GameResource/XlqyClient.class.php @@ -22,6 +22,7 @@ class XlqyClient protected $logTag = 'rebate:XLQY '; + protected $baseUrl = 'http://xx2api.hnputihd.com'; protected $client; protected $currentName; @@ -34,7 +35,7 @@ class XlqyClient public function __construct($game = null) { $this->client = new Client([ - 'base_uri' => 'http://xx2api.hnputihd.com', + 'base_uri' => $this->baseUrl, 'timeout' => 10.0, ]); }