Merge branch 'feature/PlatFormCoinData' of wmtx/platform into release

取消平台转移
master
廖金灵 5 years ago committed by Gogs
commit c5376f8a64

@ -67,12 +67,8 @@ class PromoteCoinRecordService {
return $items;
}
public function addRecord($params,$valueDetailData = []) {
public function addRecord($params) {
$data = $this->createRecord($params);
if(!empty($valueDetailData)) {
$valueDetailData['order_number'] = $data['sn'];
addValueDetail($valueDetailData);
}
return M('PromoteCoinRecord', 'tab_')->add($data);
}

@ -515,17 +515,7 @@ class PromoteService {
'remark' => $remark,
];
$valueDetailData = [
'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);
$promoteCoinRecordService->addRecord($fromRecord);
$incStatus = M('user_play', 'tab_')->where(['game_id' => $gameId, 'user_id' => $userId])->setInc('bind_balance', $num);
$decStatus = $this->decCoin($promoteId, $num, $isUseBind ? $gameId : 0);

Loading…
Cancel
Save