45 lines
1.3 KiB
PHP
45 lines
1.3 KiB
PHP
<?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);
|
|
}
|
|
|
|
} |