request->params([ ['order_no', ''], ['order_status', ''], ['order_from', ''], ['create_time', []], ['pay_time', []], ['member_id', ''], ['start_money', 0], ['end_money', 0] ]); return success((new RechargeOrderService())->getPage($data)); } /** * 充值订单详情 * @param int $order_id * @return Response */ public function detail(int $order_id) { return success((new RechargeOrderService())->getDetail($order_id)); } public function status() { return success((new RechargeOrderService())->getStatus()); } public function refund($order_id) { $res = (new RechargeOrderRefundService())->create($order_id); if ($res === true) return success(); return fail($res); } /** * 退款列表 * @return Response */ public function refundLists() { $data = $this->request->params([ ['create_time', []], ['member_id', ''], ['refund_no', ''], ['status', ''], ['keywords', ''], ['order_no', ''], ]); return success((new RechargeOrderRefundService())->getPage($data)); } /** * 退款详情 * @param int $refund_id * @return Response */ public function refundDetail(int $refund_id) { return success((new RechargeOrderRefundService())->getDetail($refund_id)); } /** * 查询退款状态 * @return Response */ public function refundStatus() { return success((new RechargeOrderRefundService())->getStatus()); } /** * 退款统计 */ public function refundStat() { return success((new RechargeOrderRefundService())->stat()); } /** * 充值统计 */ public function stat() { $data = $this->request->params([ ['member_id', ''], ]); $res = (new RechargeOrderService())->stat($data); return success($res); } }