Explorar el Código

Merge branch 'master' of http://18.167.157.193:1026/guanli/ngds

theo hace 3 años
padre
commit
5279ed1dc8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      common/models/forms/UploadForm.php

+ 2 - 0
common/models/forms/UploadForm.php

@@ -8,6 +8,7 @@ use common\helpers\Date;
 use common\helpers\Excel;
 use common\helpers\Form;
 use common\helpers\http\RemoteUploadApi;
+use common\helpers\LoggerTool;
 use common\helpers\ocr\OcrApi;
 use common\helpers\Tool;
 use common\helpers\user\Info;
@@ -180,6 +181,7 @@ class UploadForm extends Model {
                 // 生成文件名
                 $fileName = Tool::generateId(false);
                 // 保存在本地
+                LoggerTool::info([$fileName, $this->file]);
                 $localPath = '/ng/Volumes/HDD/workshop/old/ar.upload.ming/files/' . $fileName . '.' . $this->file->extension;
                 if (!$this->file->saveAs($localPath)) {
                     throw new Exception('Failed');