作者 王晓刚
1 个管道 的构建 通过 耗费 40 秒

提现失败问题

@@ -31,12 +31,18 @@ class UsersController extends AdminBaseController{ @@ -31,12 +31,18 @@ class UsersController extends AdminBaseController{
31 $where['a.status'] = $_POST['identity']; 31 $where['a.status'] = $_POST['identity'];
32 } 32 }
33 } 33 }
  34 + if(!empty($_POST['id'])){
  35 + $where['id'] = ['eq',$_POST];
  36 + }
34 $data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> where($where) -> paginate(1000000); 37 $data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> where($where) -> paginate(1000000);
35 }else{ 38 }else{
36 $data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> paginate(12); 39 $data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> paginate(12);
37 40
38 } 41 }
39 $this -> assign('data',$data); 42 $this -> assign('data',$data);
  43 + $this->assign('user_nickname',!empty($_POST['user_nickname']) ? $_POST['user_nickname'] : '');
  44 + $this->assign('status',!empty($_POST['status']) ? $_POST['status'] : '');
  45 + $this->assign('id',!empty($_POST['id']) ? $_POST['id'] : '');
40 return $this -> fetch(); 46 return $this -> fetch();
41 47
42 } 48 }
@@ -12,13 +12,16 @@ @@ -12,13 +12,16 @@
12 <li class="active"><a href="#">用户列表</a></li> 12 <li class="active"><a href="#">用户列表</a></li>
13 </ul> 13 </ul>
14 <form class="well form-inline margin-top-20" method="post" action="{:url('Users/user_list')}"> 14 <form class="well form-inline margin-top-20" method="post" action="{:url('Users/user_list')}">
15 - 时间:  
16 - <input type="text" class="form-control js-bootstrap-datetime" name="start_time"  
17 - value="{$start_time|default=''}"  
18 - style="width: 140px;" autocomplete="off">-  
19 - <input type="text" class="form-control js-bootstrap-datetime" name="end_time"  
20 - value="{$end_time|default=''}"  
21 - style="width: 140px;" autocomplete="off"> &nbsp; &nbsp; 15 + <!--时间:-->
  16 + <!--<input type="text" class="form-control js-bootstrap-datetime" name="start_time"-->
  17 + <!--value="{$start_time|default=''}"-->
  18 + <!--style="width: 140px;" autocomplete="off">- -->
  19 + <!--<input type="text" class="form-control js-bootstrap-datetime" name="end_time"-->
  20 + <!--value="{$end_time|default=''}"-->
  21 + <!--style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;-->
  22 + 序号:
  23 + <input type="text" class="form-control" name="id" style="width: 200px;"
  24 + value="{$id|default=''}" placeholder="请输入序号">
22 关键字: 25 关键字:
23 <input type="text" class="form-control" name="keyword" style="width: 200px;" 26 <input type="text" class="form-control" name="keyword" style="width: 200px;"
24 value="{$keyword|default=''}" placeholder="请输入微信昵称..."> 27 value="{$keyword|default=''}" placeholder="请输入微信昵称...">