all(), [ 'required' => 'id|exists:user,id', ]); if ($validator->fails()) { return showJsonErr($validator->errors()->first()); } // 区分系统管理员与地区管理员数据-2019-4-26 11:26:31 if (\Auth::user()->is_super == 3 && !in_array($param['id'], getIds())) { return showJsonErr('抱歉,您没有权限查看该用户信息'); } $result = AccountLog::whereUid($param['id']) //->whereIn('type', [3, 2]) ->whereIn('type', [31, 30,32,45]) ->whereStatus(1) ->select(['id', 'uid','source_uid','money', 'created_at', 'type','remark']) ->orderBy('created_at','desc') ->paginate(perPage()); return showJsonSucc(1001, $result); } /* * 代理费缴费记录 * wsl * 20190807 * */ public function agentPayLog(Request $request){ $validator = \Validator::make($param = $request->all(), [ 'required' => 'id|exists:user,id', ]); if ($validator->fails()) { return showJsonErr($validator->errors()->first()); } // 区分系统管理员与地区管理员数据-2019-4-26 11:26:31 if (\Auth::user()->is_super == 3 && !in_array($param['id'], getIds())) { return showJsonErr('抱歉,您没有权限查看该用户信息'); } $result = AccountLog::whereUid($param['id']) //->whereIn('type', [3, 2]) ->whereIn('type', [7, 8]) ->whereStatus(1) ->select(['id', 'uid', 'money', 'created_at', 'type']) ->orderBy('created_at','desc') ->paginate(perPage()); return showJsonSucc(1001, $result); } }