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 重新退款