Browse Source

no message

yeshihao 1 năm trước cách đây
mục cha
commit
0b6edcb139
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      dyu/application/store/model/Certificate.php

+ 3 - 0
dyu/application/store/model/Certificate.php

@@ -84,6 +84,9 @@ class Certificate extends CertificateModel
 			$this->error = '请选择资质分类';
 			return false;
 		}
+		//获取文件类型
+		$file              = UploadFile::detail($data['file_id']);
+		$data['file_type'] = $file['file_type'];
 		return $this->allowField(true)->save($data) !== false;
 	}