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.
47 lines
757 B
47 lines
757 B
9 months ago
|
<?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' => '支付宝支付',
|
||
|
];
|
||
|
}
|
||
|
}
|