kevin_zhangl 3 лет назад
Родитель
Сommit
2c8a2104e7
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      common/helpers/Excel.php
  2. 1 1
      common/models/forms/UploadForm.php

+ 1 - 1
common/helpers/Excel.php

@@ -808,7 +808,7 @@ class Excel extends BaseObject {
         $fileNameArray = ExcelImport::find()->select('U.FILE_NAME')->from(ExcelImport::tableName() . ' AS ET')->join('LEFT JOIN', Uploads::tableName() . ' AS U', 'ET.UPLOAD_ID=U.ID')->where('ET.ID=:ID', [':ID' => $excelImportId])->asArray()->one();
 //        $filePath = \Yii::getAlias('@common/runtime/uploads/' . $fileNameArray['FILE_NAME']);
 //        $filePath =  \Yii::$app->localUpload . $fileNameArray['FILE_NAME'];
-        $filePath = '/ng/Volumes/HDD/workshop/old/ar.upload.ming/files/' . $fileNameArray['FILE_NAME'];
+        $filePath = '/ng922/Volumes/HDD/workshop/old/ar.upload.ming/files/' . $fileNameArray['FILE_NAME'];
         if ($startRow > $rowCount) {
             return 0;
         }

+ 1 - 1
common/models/forms/UploadForm.php

@@ -183,7 +183,7 @@ class UploadForm extends Model {
 //                $fileName = $this->file->baseName;
                 // 保存在本地
 //                $filePath =  \Yii::$app->localUpload . $fileNameArray['FILE_NAME'];
-                $localPath = '/ng-shop/Volumes/HDD/workshop/old/ar.upload.ming/files/' . $fileName . '.' . $this->file->extension;
+                $localPath = '/ng922/Volumes/HDD/workshop/old/ar.upload.ming/files/' . $fileName . '.' . $this->file->extension;
                 if (!$this->file->saveAs($localPath)) {
                     throw new Exception('Failed');
                 }