刘桂岩 5 years ago
parent
commit
218ba1a01a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/common/library/DicomPaser.php

+ 3 - 0
application/common/library/DicomPaser.php

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