Merge pull request 'feature/rebate_slzq' (#612) from feature/rebate_slzq into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/612
master
廖金灵 3 years ago
commit a92d7e2247

@ -2,6 +2,7 @@
namespace Base\Service;
use Base\Tool\GameResource\SbcqClient;
use Base\Tool\GameResource\SlzqClient;
use Base\Tool\GameResource\XlqyClient;
use Base\Tool\GameResource\XyyXmjsClient;
use Base\Tool\GameResource\ZxjClient;
@ -50,7 +51,7 @@ class GameRebateService
'J' => 'propsApplication',
];
public $rebateBaseGameIds = [70, 73, 75, 79];
public $rebateBaseGameIds = [70, 73, 75, 79, 81];
public function isGiftItemSend($order, $item)
{
@ -127,6 +128,9 @@ class GameRebateService
case 79:
$client = new ZxjClient();
break;
case 81:
$client = new SlzqClient();
break;
case 9:
$client = new XlqyClient();
break;

@ -8,6 +8,7 @@ use GuzzleHttp\Exception\RequestException;
use Base\Tool\GameResource\YzchzbClient;
use Base\Tool\GameResource\LsxxClient;
use Base\Tool\GameResource\LeyouClient;
use Base\Tool\GameResource\SlzqClient;
use Base\Tool\GameResource\XlqyClient;
use Base\Tool\GameResource\XyyClient;
@ -44,6 +45,8 @@ class GameResource
294 => XyyClient::class, // 逍遥游之仙魔之战(苹果版)
299 => ZxjClient::class, // 诛神记(安卓版)
300 => ZxjClient::class, // 诛神记(苹果版)
303 => SlzqClient::class, // 神灵之契(安卓版)
304 => SlzqClient::class, // 神灵之契(苹果版)
];
public function __construct($game)

@ -0,0 +1,27 @@
<?php
namespace Base\Tool\GameResource;
/**
* 神灵之契-测试资源接口
*/
class SlzqClient extends XlqyClient
{
const SIGN_NAME = 'sign';
const SUCCESS = '0000';
const APP_ID = '3EA8DEF8819872EBD';
const SIGN_KEY = '9VRPE9xKDggsCscvnnQUbf6I124HWxVw';
// const APP_ID = '1E1724B3359481095'; // IOS
// const SIGN_KEY = 'gr51n39msBI71aDh45s9yXvtcaOTef5s'; // IOS
protected $baseUrl = 'http://zzghapi.hnputihd.com';
protected $logTag = 'rebate:SLZQ ';
protected $apis = [
'send-email' => ['uri' => '/apip/payWM122S00/emRebate', 'method' => 'post'],
'send-testing' => ['uri' => '/apip/payWM122S00/testingOrder', 'method' => 'post'],
'send-props' => ['uri' => '/apip/payWM122S00/buyProp', 'method' => 'post'],
];
}

@ -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,
]);
}

Loading…
Cancel
Save