插件管理更新

This commit is contained in:
技术老胡
2026-03-20 12:05:54 +08:00
parent f3919c9899
commit 0eee3b92c2
6 changed files with 98 additions and 38 deletions

View File

@@ -7,28 +7,36 @@ use app\common\base\BaseModel;
/**
* 支付插件模型
*
* 对应表ma_pay_plugin主键 plugin_code
* 对应表ma_pay_plugin主键 code
*/
class PaymentPlugin extends BaseModel
{
protected $table = 'ma_pay_plugin';
protected $primaryKey = 'plugin_code';
protected $primaryKey = 'code';
public $incrementing = false;
protected $keyType = 'string';
protected $fillable = [
'plugin_code',
'plugin_name',
'code',
'name',
'class_name',
'status',
'config_schema',
'pay_types',
'transfer_types',
'author',
'link',
];
public $timestamps = true;
protected $casts = [
'status' => 'integer',
'config_schema' => 'array',
'pay_types' => 'array',
'transfer_types' => 'array',
];
}