refactor: 修改附件下载模型

This commit is contained in:
2025-04-01 13:53:55 +08:00
parent 7e59daca85
commit 36b887726c
2 changed files with 1 additions and 7 deletions

View File

@@ -21,12 +21,6 @@ class AttachmentModel extends AttachmentBaseModel
protected $json = ['attach'];
// 设置JSON数据返回数组
protected $jsonAssoc = true;
// JSON字段属性类型
protected $jsonType = [
'attach[*]->file_path' => 'string',
'attach[*]->file_ext' => 'string',
'attach[*]->btn_name' => 'string',
];
// 关联附件分类模型
public function category()

View File

@@ -25,7 +25,7 @@ class AttachmentBaseModel extends BaseModel
'image' => 'string',
'applicable_to' => 'string',
'support_platform' => 'string',
'attach' => 'string',
'attach' => 'json',
'sort' => 'int',
'recommend' => 'int',
'status' => 'int',