You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.6 KiB
86 lines
2.6 KiB
<?php
|
|
|
|
namespace app\admin\controller;
|
|
|
|
// 充值订单
|
|
use app\admin\service\RechargeService;
|
|
|
|
class Recharge extends AdminBaseController
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->index($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
public function info()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->info($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
public function check()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->check($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
// 支付码配置列表 & 会员支付码配置列表 (用户提交的充值订单,等待后台为其配置支付码)
|
|
public function paymentCodeLogList()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->paymentCodeLogList($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
// 给充值订单配置支付码
|
|
public function paymentCodeLogUpdate()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->paymentCodeLogUpdate($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
// 获取支付码配置列表下拉框
|
|
public function paymentCodeConfigSelect()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->paymentCodeConfigSelect($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
// 支付码配置列表
|
|
public function paymentCodeConfigList()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->paymentCodeConfigList($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
// 支付码管理 - 新增
|
|
public function paymentCodeConfigAdd()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->paymentCodeConfigAdd($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
// 支付码管理 -编辑
|
|
public function paymentCodeConfigUpdate()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->paymentCodeConfigUpdate($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
// 支付码流水查询
|
|
public function userPaymentCodeLogList()
|
|
{
|
|
$service = new RechargeService();
|
|
$result = $service->userPaymentCodeLogList($this->request->param(),$this->getAdminId());
|
|
return json($result);
|
|
}
|
|
|
|
}
|