更新余额明细
This commit is contained in:
parent
28b70f80f4
commit
0fd9d910ca
|
@ -1,22 +1,11 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\controller\finance;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\finance\AccountLogLists;
|
||||
use app\common\enum\user\AccountLogEnum;
|
||||
use think\response\Json;
|
||||
|
||||
/***
|
||||
* 账户流水控制器
|
||||
|
@ -38,6 +27,16 @@ class AccountLogController extends BaseAdminController
|
|||
return $this->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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,16 +1,4 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\controller\finance;
|
||||
|
||||
|
@ -18,6 +6,7 @@ use app\adminapi\controller\BaseAdminController;
|
|||
use app\adminapi\lists\finance\RefundLogLists;
|
||||
use app\adminapi\lists\finance\RefundRecordLists;
|
||||
use app\adminapi\logic\finance\RefundLogic;
|
||||
use think\response\Json;
|
||||
|
||||
/**
|
||||
* 退款控制器
|
||||
|
@ -27,7 +16,6 @@ use app\adminapi\logic\finance\RefundLogic;
|
|||
class RefundController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 退还统计
|
||||
* @return \think\response\Json
|
||||
|
@ -43,6 +31,15 @@ class RefundController extends BaseAdminController
|
|||
return $this->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);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
namespace app\adminapi\controller\finance;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use think\response\Json;
|
||||
|
||||
/**
|
||||
* 提现控制器
|
||||
* Class WithdrawController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class WithdrawController extends BaseAdminController
|
||||
{
|
||||
public function index(): Json
|
||||
{
|
||||
$params = $this->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);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,16 +1,4 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\controller\recharge;
|
||||
|
||||
|
@ -18,6 +6,7 @@ use app\adminapi\controller\BaseAdminController;
|
|||
use app\adminapi\lists\recharge\RechargeLists;
|
||||
use app\adminapi\logic\recharge\RechargeLogic;
|
||||
use app\adminapi\validate\recharge\RechargeRefundValidate;
|
||||
use think\response\Json;
|
||||
|
||||
/**
|
||||
* 充值控制器
|
||||
|
@ -68,6 +57,15 @@ class RechargeController extends BaseAdminController
|
|||
return $this->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 重新退款
|
||||
|
|
Loading…
Reference in New Issue