|
|
@ -515,17 +515,7 @@ class PromoteService {
|
|
|
|
'remark' => $remark,
|
|
|
|
'remark' => $remark,
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
$valueDetailData = [
|
|
|
|
$promoteCoinRecordService->addRecord($fromRecord);
|
|
|
|
'user_id' => $userId,
|
|
|
|
|
|
|
|
'before_value' => $before_value,
|
|
|
|
|
|
|
|
'value' => $num,
|
|
|
|
|
|
|
|
'after_value' => $num + $before_value,
|
|
|
|
|
|
|
|
'create_time' => time(),
|
|
|
|
|
|
|
|
'type' => 1,
|
|
|
|
|
|
|
|
'remark' => $remark,
|
|
|
|
|
|
|
|
'pay_type' => 3,
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
$promoteCoinRecordService->addRecord($fromRecord, $valueDetailData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$incStatus = M('user_play', 'tab_')->where(['game_id' => $gameId, 'user_id' => $userId])->setInc('bind_balance', $num);
|
|
|
|
$incStatus = M('user_play', 'tab_')->where(['game_id' => $gameId, 'user_id' => $userId])->setInc('bind_balance', $num);
|
|
|
|
$decStatus = $this->decCoin($promoteId, $num, $isUseBind ? $gameId : 0);
|
|
|
|
$decStatus = $this->decCoin($promoteId, $num, $isUseBind ? $gameId : 0);
|
|
|
|