From 1cfba9a3b5889d5cc60e43d6e6dcee8680c359ca Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Wed, 9 Oct 2019 16:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/ApplyService.class.php | 5 ++++- Application/Home/Controller/PromoteCoinController.class.php | 3 +++ Application/Mobile/Controller/UserController.class.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Application/Base/Service/ApplyService.class.php b/Application/Base/Service/ApplyService.class.php index ee93ce635..9d9577554 100644 --- a/Application/Base/Service/ApplyService.class.php +++ b/Application/Base/Service/ApplyService.class.php @@ -17,6 +17,9 @@ class ApplyService { $ids = [$promoteId]; $list = M('promote', 'tab_')->field('id')->where('parent_id=' . $promoteId . ' or grand_id=' . $promoteId)->select(); $ids = array_merge($ids, array_column($list, 'id')); - M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $ids]])->delete(); + + $save['offline_status'] = 1; + + M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $ids]])->save($save); } } \ No newline at end of file diff --git a/Application/Home/Controller/PromoteCoinController.class.php b/Application/Home/Controller/PromoteCoinController.class.php index 247e98e21..5a0fedb93 100644 --- a/Application/Home/Controller/PromoteCoinController.class.php +++ b/Application/Home/Controller/PromoteCoinController.class.php @@ -90,6 +90,7 @@ class PromoteCoinController extends BaseController $this->assign('data', $data); $this->assign('count', $count); + $this->meta_title = '我的平台币'; $this->display(); } @@ -198,6 +199,7 @@ class PromoteCoinController extends BaseController $this->assign('count', $count); $this->assign('gameId', I('get.game_id')); $this->assign('setDate', date("Y-m-d")); + $this->meta_title = '交易明细'; $this->display(); } @@ -258,6 +260,7 @@ class PromoteCoinController extends BaseController } $this->assign('data', $data); + $this->meta_title = '查看明细'; $this->display(); } diff --git a/Application/Mobile/Controller/UserController.class.php b/Application/Mobile/Controller/UserController.class.php index de17feae5..ee9a0d913 100644 --- a/Application/Mobile/Controller/UserController.class.php +++ b/Application/Mobile/Controller/UserController.class.php @@ -231,7 +231,7 @@ class UserController extends BaseController $userData = M('User', 'tab_')->where($whereUser)->find(); if (!empty($userData)) { - if (empty($userData['promote_id'])) { + if (empty($userData['promote_id']) && empty($userData['promote_account'])) { $saveData['promote_id'] = $promoteId; $saveData['promote_account'] = $promoteData['account'];