|
|
@ -32,6 +32,7 @@ class GameRebateService
|
|
|
|
'I' => '充值返利发放',
|
|
|
|
'I' => '充值返利发放',
|
|
|
|
'J' => '定制道具申请',
|
|
|
|
'J' => '定制道具申请',
|
|
|
|
'K' => '新服七日礼包',
|
|
|
|
'K' => '新服七日礼包',
|
|
|
|
|
|
|
|
'L' => '等级福利发放',
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
public $typeNames = [
|
|
|
|
public $typeNames = [
|
|
|
@ -46,9 +47,10 @@ class GameRebateService
|
|
|
|
'I' => 'singleTimes',
|
|
|
|
'I' => 'singleTimes',
|
|
|
|
'J' => 'propsApplication',
|
|
|
|
'J' => 'propsApplication',
|
|
|
|
'K' => 'openSevenDay',
|
|
|
|
'K' => 'openSevenDay',
|
|
|
|
|
|
|
|
'L' => 'roleLevel',
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
public $rebateBaseGameIds = [11];
|
|
|
|
public $rebateBaseGameIds = [11, 17];
|
|
|
|
|
|
|
|
|
|
|
|
public function isGiftItemSend($order, $item)
|
|
|
|
public function isGiftItemSend($order, $item)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -63,8 +65,10 @@ class GameRebateService
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$gift = null;
|
|
|
|
$gift = null;
|
|
|
|
if ($order['gift_key']) {
|
|
|
|
if ($order['gift_key']) {
|
|
|
|
$gift = M('rebate_gifts', 'tab_')->where(['base_game_id' => $order['base_game_id'], 'type' => $order['type'], 'gift_key' => $order['gift_key']])->find();
|
|
|
|
$gift = M('rebate_gifts', 'tab_')
|
|
|
|
|
|
|
|
->where(['base_game_id' => $order['base_game_id'], 'type' => $order['type'], 'gift_key' => $order['gift_key'], 'group' => $order['gift_group']])->find();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$order['type_name'] = $this->typeDisplayNames[$order['type']] ?: '返利福利';
|
|
|
|
$hasError = false;
|
|
|
|
$hasError = false;
|
|
|
|
$sendResult = '';
|
|
|
|
$sendResult = '';
|
|
|
|
if ($gift && $gift['game_currency'] > 0) {
|
|
|
|
if ($gift && $gift['game_currency'] > 0) {
|
|
|
@ -116,7 +120,7 @@ class GameRebateService
|
|
|
|
case 11:
|
|
|
|
case 11:
|
|
|
|
$client = new ZzylClient();
|
|
|
|
$client = new ZzylClient();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 11:
|
|
|
|
case 17:
|
|
|
|
$client = new JmxyClient();
|
|
|
|
$client = new JmxyClient();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
@ -385,6 +389,9 @@ class GameRebateService
|
|
|
|
$fields['amount'] = '申请总价值';
|
|
|
|
$fields['amount'] = '申请总价值';
|
|
|
|
} elseif ($awardType == 'K') {
|
|
|
|
} elseif ($awardType == 'K') {
|
|
|
|
$fields['pay_amount'] = '充值金额';
|
|
|
|
$fields['pay_amount'] = '充值金额';
|
|
|
|
|
|
|
|
} elseif ($awardType == 'L') {
|
|
|
|
|
|
|
|
$fields['pay_amount'] = '当前等级';
|
|
|
|
|
|
|
|
$fields['mount'] = '奖励等级';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($awardType == 'J') {
|
|
|
|
if ($awardType == 'J') {
|
|
|
|