修改支付通道

This commit is contained in:
邹景立 2021-03-26 18:19:03 +08:00
parent 5117ac46be
commit 64976ebc62
3 changed files with 13 additions and 13 deletions

View File

@ -5,7 +5,7 @@ namespace app\data\controller;
use think\admin\Controller; use think\admin\Controller;
/** /**
* 用户通知管理 * 系统通知管理
* Class BaseMessage * Class BaseMessage
* @package app\data\controller * @package app\data\controller
*/ */

View File

@ -8,7 +8,7 @@ use think\admin\Controller;
use think\admin\extend\CodeExtend; use think\admin\extend\CodeExtend;
/** /**
* 支付参数支付 * 支付通道管理
* Class BasePayment * Class BasePayment
* @package app\data\controller * @package app\data\controller
*/ */
@ -21,13 +21,13 @@ class BasePayment extends Controller
private $table = 'DataBasePayment'; private $table = 'DataBasePayment';
/** /**
* 支付参数类型 * 支付通道类型
* @var array * @var array
*/ */
protected $types = PaymentService::TYPES; protected $types = PaymentService::TYPES;
/** /**
* 支付参数管理 * 支付通道管理
* @auth true * @auth true
* @menu true * @menu true
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
@ -36,14 +36,14 @@ class BasePayment extends Controller
*/ */
public function index() public function index()
{ {
$this->title = '支付参数管理'; $this->title = '支付通道管理';
$query = $this->_query($this->table); $query = $this->_query($this->table);
$query->where(['deleted' => 0])->order('sort desc,id desc'); $query->where(['deleted' => 0])->order('sort desc,id desc');
$query->like('name,code')->equal('type,status')->dateBetween('create_at')->page(); $query->like('name,code')->equal('type,status')->dateBetween('create_at')->page();
} }
/** /**
* 添加支付参数 * 添加支付通道
* @auth true * @auth true
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
@ -51,12 +51,12 @@ class BasePayment extends Controller
*/ */
public function add() public function add()
{ {
$this->title = '添加支付参数'; $this->title = '添加支付通道';
$this->_form($this->table, 'form'); $this->_form($this->table, 'form');
} }
/** /**
* 编辑支付参数 * 编辑支付通道
* @auth true * @auth true
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
@ -64,7 +64,7 @@ class BasePayment extends Controller
*/ */
public function edit() public function edit()
{ {
$this->title = '编辑支付参数'; $this->title = '编辑支付通道';
$this->_form($this->table, 'form'); $this->_form($this->table, 'form');
} }
@ -102,12 +102,12 @@ class BasePayment extends Controller
protected function _form_result(bool $state) protected function _form_result(bool $state)
{ {
if ($state) { if ($state) {
$this->success('支付参数保存成功!', 'javascript:history.back()'); $this->success('支付通道保存成功!', 'javascript:history.back()');
} }
} }
/** /**
* 修改支付参数状态 * 修改通道状态
* @auth true * @auth true
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
*/ */
@ -120,7 +120,7 @@ class BasePayment extends Controller
} }
/** /**
* 删除支付参数 * 删除支付通道
* @auth true * @auth true
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
*/ */

View File

@ -43,7 +43,7 @@
</select> </select>
<input name="type" type="hidden" value="{$vo.type}"> <input name="type" type="hidden" value="{$vo.type}">
{/empty} {/empty}
<span class="help-block"><b>必选,</b>请选择预置的支付方式,支付参数创建之后不能修改,请谨慎选择并配置参数</span> <span class="help-block"><b>必选,</b>请选择预置的支付方式,支付通道创建之后不能修改,请谨慎选择并配置参数</span>
</label> </label>
</div> </div>