zhangwei #9
|
@ -54,7 +54,6 @@ class UserLogic extends BaseLogic
|
||||||
if(isset($params['pay_type']) && in_array($params['pay_type'],[0,1,2,3,4])){
|
if(isset($params['pay_type']) && in_array($params['pay_type'],[0,1,2,3,4])){
|
||||||
$search[] = ['pay_type','=',$params['pay_type']];
|
$search[] = ['pay_type','=',$params['pay_type']];
|
||||||
}
|
}
|
||||||
dump($search);
|
|
||||||
//获取用户余额列表
|
//获取用户余额列表
|
||||||
$fields = 'id,record_id,amount,total_amount,type,pay_type,mark,appid,create_time';
|
$fields = 'id,record_id,amount,total_amount,type,pay_type,mark,appid,create_time';
|
||||||
$lists = UserBalance::field($fields)->where('user_id',$params['uid'])->where($search)->page($params['page_no'],$params['page_size'])->order('create_time desc')->select()->each(function($item){
|
$lists = UserBalance::field($fields)->where('user_id',$params['uid'])->where($search)->page($params['page_no'],$params['page_size'])->order('create_time desc')->select()->each(function($item){
|
||||||
|
|
Loading…
Reference in New Issue