From 9878ba45e5ef19034330d3bf76d3ad83045c87cd Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Tue, 17 Mar 2020 18:05:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=B9=B3=E5=8F=B0=E8=BD=AC?= =?UTF-8?q?=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Base/Service/PromoteCoinRecordService.class.php | 6 +----- Application/Base/Service/PromoteService.class.php | 12 +----------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Application/Base/Service/PromoteCoinRecordService.class.php b/Application/Base/Service/PromoteCoinRecordService.class.php index ae1776fea..c8b896354 100644 --- a/Application/Base/Service/PromoteCoinRecordService.class.php +++ b/Application/Base/Service/PromoteCoinRecordService.class.php @@ -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); } diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index b3aeba218..b3680d471 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -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);