zxiansheng 4 лет назад
Родитель
Сommit
196750415d

+ 1 - 1
backendEle/src/views/admin/test.vue

@@ -2,7 +2,7 @@
   <div>
     <el-upload
       class="avatar-uploader"
-      action="http://ar.upload.ming/upload"
+      action="http://localhost:9017/upload"
       :headers="header"
       name="ATTACHMENT"
       :show-file-list="false"

+ 2 - 1
common/config/config-devlopment.php

@@ -85,7 +85,8 @@ return [
         'database' => 15,
     ],
     // 远程静态上传服务器地址 @todo 明哥提供
-    'remoteUploadHost' => 'http://ar.upload.ming',
+    //'remoteUploadHost' => 'http://localhost:9017',
+    'remoteUploadHost' => 'http://localhost:9017',
     // swoole异步服务器及端口
     'swooleTimerConfig' => [
         'host' => '127.0.0.1',

+ 1 - 1
common/config/config-example.php

@@ -101,7 +101,7 @@ return [
         'database' => 5,
     ],
     // 远程静态上传服务器地址
-    'remoteUploadHost' => 'http://ar.upload.ming',
+    'remoteUploadHost' => 'http://localhost:9017',
     'idCardVerify' => [
         'host' => 'http://121.40.238.29:20000',
         'clientId' => '122371433052508160',

+ 1 - 1
common/config/config-oci.php

@@ -85,7 +85,7 @@ return [
         'database' => 15,
     ],
     // 远程静态上传服务器地址 @todo 明哥提供
-    'remoteUploadHost' => 'http://ar.upload.ming',
+    'remoteUploadHost' => 'http://localhost:9017',
     // swoole异步服务器及端口
     'swooleTimerConfig' => [
         'host' => '127.0.0.1',

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

@@ -167,7 +167,8 @@ class UploadForm extends Model {
             // 上传图片到远程服务器
             if (in_array($this->scenario, $this->_remoteScenario)) {
                 $remoteUploadApi = RemoteUploadApi::instance();
-                if ($uploadResult = $remoteUploadApi->upload($this->file->tempName)) {
+                $uploadResult = $remoteUploadApi->upload($this->file->tempName);
+                if ($uploadResult) {
                     $uploadInfo = [
                         'fileName' => $uploadResult['name'],
                         'category' => $uploadCategory,