From c3caed08b3fd20b0ab1d22b7091e574fc2596656 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Thu, 14 Nov 2019 17:22:58 +0800 Subject: [PATCH] bug --- Application/Base/Service/PromoteService.class.php | 6 +++--- .../Controller/PromoteCoinController.class.php | 11 +---------- .../Home/View/default/PromoteCoin/coinDetails.html | 14 +++----------- .../Home/View/default/Public/promote_base.html | 2 -- 4 files changed, 7 insertions(+), 26 deletions(-) diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index 5e52f3eb9..5b58a2063 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -107,12 +107,12 @@ class PromoteService { ]; } - if ($type == 1 && $balanceCoinMode == 0) { + /* if ($type == 1 && $balanceCoinMode == 0) { return [ 'status' => false, 'msg'=>'请选择平台币管理方式' ]; - } + } */ if (count($shiftIds) > 15) { return [ @@ -206,7 +206,7 @@ class PromoteService { 'chain' => ['exp', 'REPLACE(chain, "/' . $fromPromote['id'] . '/","/' . $toPromote['id'] . '/")'], ]); - $status = M('ShiftTask')->where('id=' . $task['id'])->save(['status' => 1, 'handle_time' => time()]); + // $status = M('ShiftTask')->where('id=' . $task['id'])->save(['status' => 1, 'handle_time' => time()]); if (!$status) { $model->rollback(); return ['status' => false, 'msg' => '系统异常,修改迁移任务状态失败']; diff --git a/Application/Home/Controller/PromoteCoinController.class.php b/Application/Home/Controller/PromoteCoinController.class.php index ecc22e293..9c92f59e3 100644 --- a/Application/Home/Controller/PromoteCoinController.class.php +++ b/Application/Home/Controller/PromoteCoinController.class.php @@ -649,22 +649,13 @@ class PromoteCoinController extends BaseController $map = ['chain' => ['like', $promote['chain'] . $promote['id'] . '/%']]; $promoteIds = D('Promote')->field('id')->where($map)->getField('id', true); $promoteIds[] = $id; - $rows = D('UserPlay')->field(['id', 'user_id'])->where(['promote_id' => ['in', $promoteIds]])->select(); - - $map = []; - $userIds = array_column($rows, 'user_id'); - if (count($userIds) > 0) { - $map = ['id' => ['in', array_column($rows, 'user_id')]]; - } else { - $map = ['_string' => '1<>1']; - } - if ($account) { $map['account'] = ['like', '%' . $account . '%']; } if ($mobile) { $map['mobile_phone'] = ['like', '%' . $mobile . '%']; } + $map['promote_id'] = ['in',$promoteIds]; $query = M('User', 'tab_')->field(['id', 'phone', 'account', 'real_name'])->where($map); list($users, $pagination, $count) = $this->paginate($query); diff --git a/Application/Home/View/default/PromoteCoin/coinDetails.html b/Application/Home/View/default/PromoteCoin/coinDetails.html index d818e1f6d..9bf4a918b 100644 --- a/Application/Home/View/default/PromoteCoin/coinDetails.html +++ b/Application/Home/View/default/PromoteCoin/coinDetails.html @@ -134,10 +134,6 @@