mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-11 02:12:48 +00:00
61 lines
1.8 KiB
PHP
61 lines
1.8 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | Niucloud-admin 企业快速开发的多应用管理平台
|
||
// +----------------------------------------------------------------------
|
||
// | 官方网址:https://www.niucloud.com
|
||
// +----------------------------------------------------------------------
|
||
// | niucloud团队 版权所有 开源版本可自由商用
|
||
// +----------------------------------------------------------------------
|
||
// | Author: Niucloud Team
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace app\adminapi\controller\pay;
|
||
|
||
use app\service\admin\pay\TransferService;
|
||
use core\base\BaseAdminController;
|
||
|
||
/**
|
||
* 转账管理
|
||
* Class Transfer
|
||
* @description 转账管理
|
||
* @package app\adminapi\controller\pay
|
||
*/
|
||
class Transfer extends BaseAdminController
|
||
{
|
||
/**
|
||
* 转账方式
|
||
* @description 转账方式
|
||
* @return \think\Response
|
||
*/
|
||
public function getWechatTransferScene(){
|
||
return success(data:(new TransferService())->getWechatTransferScene());
|
||
}
|
||
|
||
/**
|
||
* 设置场景id
|
||
* @description 设置场景id
|
||
* @param $scene
|
||
* @return \think\Response
|
||
*/
|
||
public function setSceneId($scene){
|
||
$data = $this->request->params([
|
||
['scene_id', ''],
|
||
]);
|
||
return success(data:(new TransferService())->setSceneId($scene, $data));
|
||
}
|
||
|
||
/**
|
||
* 设置业务转账场景配置
|
||
* @description 设置业务转账场景配置
|
||
* @param $type
|
||
* @return \think\Response
|
||
*/
|
||
public function setTradeScene($type){
|
||
$data = $this->request->params([
|
||
['scene', ''],
|
||
['infos', []],
|
||
['perception', ''],
|
||
]);
|
||
return success(data:(new TransferService())->setTradeScene($type, $data));
|
||
}
|
||
} |