www_fpvone_cn/application/admin/model/shopro/PayConfig.php

47 lines
757 B
PHP
Raw Normal View History

2024-12-20 12:29:51 +08:00
<?php
namespace app\admin\model\shopro;
use app\admin\model\shopro\Common;
use traits\model\SoftDelete;
class PayConfig extends Common
{
use SoftDelete;
protected $name = 'shopro_pay_config';
protected $deleteTime = 'deletetime';
protected $type = [
'params' => 'json',
];
// 追加属性
protected $append = [
'type_text',
'status_text'
];
protected $hidden = [
'params'
];
public function statusList()
{
return [
'normal' => '正常',
'disabled' => '禁用',
];
}
public function typeList()
{
return [
'wechat' => '微信支付',
'alipay' => '支付宝支付',
];
}
}