|
@@ -13,10 +13,13 @@ namespace app\common\library;
|
|
require dirname(__FILE__).'/nanodicom/Nanodicom.php';
|
|
require dirname(__FILE__).'/nanodicom/Nanodicom.php';
|
|
use Nanodicom;
|
|
use Nanodicom;
|
|
use app\common\library\DicomPaserTag;
|
|
use app\common\library\DicomPaserTag;
|
|
|
|
+use think\Exception;
|
|
|
|
+
|
|
class DicomPaser {
|
|
class DicomPaser {
|
|
public static function paser($filePath = '') {
|
|
public static function paser($filePath = '') {
|
|
|
|
|
|
if(empty($filePath)) {
|
|
if(empty($filePath)) {
|
|
|
|
+
|
|
throw new Error("The filePath $filePath is empty or null");
|
|
throw new Error("The filePath $filePath is empty or null");
|
|
}
|
|
}
|
|
|
|
|