修正ca签章

This commit is contained in:
2023-04-19 09:20:01 +08:00
parent c793d81869
commit 5f4e567814
6 changed files with 248 additions and 939 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ use Hyperf\Snowflake\Concern\Snowflake;
* @property int $cert_id 主键id
* @property int $user_id 用户id(系统证书时为null)
* @property int $is_system 是否系统证书(0:否 1:是)
* @property int $type 证书类型(1:线下 2:线上)
* @property string $cert_base64 签名值证书
* @property string $cert_chain_p7 证书链
* @property string $cert_serial_number 证书序列号
@@ -32,7 +33,7 @@ class UserCaCert extends Model
/**
* The attributes that are mass assignable.
*/
protected array $fillable = ['cert_id', 'user_id', 'is_system', 'cert_base64', 'cert_chain_p7', 'cert_serial_number', 'ca_pin', 'created_at', 'updated_at'];
protected array $fillable = ['cert_id', 'user_id', 'is_system', 'type', 'cert_base64', 'cert_chain_p7', 'cert_serial_number', 'ca_pin', 'created_at', 'updated_at'];
protected string $primaryKey = "cert_id";