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'];