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