yeshihao 1 éve
szülő
commit
0b6edcb139
1 módosított fájl, 3 hozzáadás és 0 törlés
  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;
 	}