|
|
@ -23,14 +23,14 @@ class XlqyClient
|
|
|
|
protected $client;
|
|
|
|
protected $client;
|
|
|
|
|
|
|
|
|
|
|
|
private $apis = [
|
|
|
|
private $apis = [
|
|
|
|
'send-email' => ['uri' => '/emRebate', 'method' => 'post'],
|
|
|
|
'send-email' => ['uri' => '/apip/payWM450S00/emRebate', 'method' => 'post'],
|
|
|
|
'send-testing' => ['uri' => '/testingOrder', 'method' => 'post'],
|
|
|
|
'send-testing' => ['uri' => '/apip/payWM450S00/testingOrder', 'method' => 'post'],
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->client = new Client([
|
|
|
|
$this->client = new Client([
|
|
|
|
'base_uri' => 'http://xx2api.hnputihd.com/apip/payWM450S00',
|
|
|
|
'base_uri' => 'http://xx2api.hnputihd.com',
|
|
|
|
'timeout' => 10.0,
|
|
|
|
'timeout' => 10.0,
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|