From 0fd9d910caf1afd45485139284d1997858e0b610 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 15 Nov 2023 17:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BD=99=E9=A2=9D=E6=98=8E?= =?UTF-8?q?=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../finance/AccountLogController.php | 43 +++++++++++++----- .../controller/finance/RefundController.php | 42 +++++++++++------ .../controller/finance/WithdrawController.php | 45 +++++++++++++++++++ .../recharge/RechargeController.php | 32 ++++++++----- 4 files changed, 125 insertions(+), 37 deletions(-) create mode 100644 app/adminapi/controller/finance/WithdrawController.php diff --git a/app/adminapi/controller/finance/AccountLogController.php b/app/adminapi/controller/finance/AccountLogController.php index 5c822798..09b7a9bd 100644 --- a/app/adminapi/controller/finance/AccountLogController.php +++ b/app/adminapi/controller/finance/AccountLogController.php @@ -1,22 +1,11 @@ dataLists(new AccountLogLists()); } + public function taskLists(): Json + { + $params = $this->request->get(['company_id', 'type', 'start_time', 'end_time']); + $result = curl_post(env('project.worker_domain').'/middleapi/accountlog/lists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + /** * @notes 用户余额变动类型 @@ -50,5 +49,25 @@ class AccountLogController extends BaseAdminController return $this->data(AccountLogEnum::getUserMoneyChangeTypeDesc()); } + public function getTaskUmChangeType(): Json + { + $params = $this->request->get(); + $result = curl_post(env('project.worker_domain').'/middleapi/accountlog/getUmChangeType',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + + public function getTaskCompanyUserList(): Json + { + $params = $this->request->get(['company_id']); + $result = curl_post(env('project.worker_domain').'/middleapi/accountlog/getCompanyUserList',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + } \ No newline at end of file diff --git a/app/adminapi/controller/finance/RefundController.php b/app/adminapi/controller/finance/RefundController.php index 6a81e144..36e22db9 100644 --- a/app/adminapi/controller/finance/RefundController.php +++ b/app/adminapi/controller/finance/RefundController.php @@ -1,16 +1,4 @@ success('', $result); } + public function taskStat(): Json + { + $params=$this->request->get(); + $result = curl_post(env('project.worker_domain').'/middleapi/refund/stat',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } /** * @notes 退款记录 @@ -55,6 +52,15 @@ class RefundController extends BaseAdminController return $this->dataLists(new RefundRecordLists()); } + public function taskRecord(): Json + { + $params=$this->request->get(['user_info', 'start_time', 'end_time', 'sn', 'order_sn']); + $result = curl_post(env('project.worker_domain').'/middleapi/refund/record',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } /** * @notes 退款日志 @@ -69,4 +75,14 @@ class RefundController extends BaseAdminController return $this->success('', $result); } + public function taskLog(): Json + { + $params=$this->request->get(['record_id']); + $result = curl_post(env('project.worker_domain').'/middleapi/refund/log',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + } \ No newline at end of file diff --git a/app/adminapi/controller/finance/WithdrawController.php b/app/adminapi/controller/finance/WithdrawController.php new file mode 100644 index 00000000..07074f7b --- /dev/null +++ b/app/adminapi/controller/finance/WithdrawController.php @@ -0,0 +1,45 @@ +request->get(['order_sn', 'status']); + $result = curl_post(env('project.worker_domain').'/middleapi/withdraw/index',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + + public function update(): Json + { + $params = $this->request->post(['id', 'status']); + $result = curl_post(env('project.worker_domain').'/middleapi/withdraw/update',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + + public function audit(): Json + { + $params = $this->request->post(['id', 'status', 'transfer_voucher', 'deny_desc']); + $result = curl_post(env('project.worker_domain').'/middleapi/withdraw/audit',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + +} \ No newline at end of file diff --git a/app/adminapi/controller/recharge/RechargeController.php b/app/adminapi/controller/recharge/RechargeController.php index 56a1079a..cea3adc3 100644 --- a/app/adminapi/controller/recharge/RechargeController.php +++ b/app/adminapi/controller/recharge/RechargeController.php @@ -1,16 +1,4 @@ dataLists(new RechargeLists()); } + public function taskLists(): Json + { + $params=$this->request->get(['page_no','page_size','pay_way','pay_status','sn','start_time','end_time']); + $result = curl_post(env('project.worker_domain').'/middleapi/recharge/lists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } /** * @notes 退款 @@ -86,6 +84,16 @@ class RechargeController extends BaseAdminController return $this->success($msg, [], 1, 1); } + public function taskRefund(): Json + { + $params=$this->request->post(['recharge_id']); + $result = curl_post(env('project.worker_domain').'/middleapi/recharge/refund',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + /** * @notes 重新退款