liaofei il y a 2 ans
Parent
commit
63527e0fa0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      crmeb/app/adminapi/controller/v1/product/StoreProduct.php

+ 2 - 1
crmeb/app/adminapi/controller/v1/product/StoreProduct.php

@@ -351,7 +351,8 @@ class StoreProduct extends AuthController
             if (!$key || !$contentType) {
             if (!$key || !$contentType) {
                 return app('json')->fail('缺少参数');
                 return app('json')->fail('缺少参数');
             }
             }
-            $re = $upload->getTempKeys($key, $path, $contentType);
+            $url = $upload->getTempKeys($key, $path, $contentType);
+            $re = ['url' => $url];
         } else {
         } else {
             $re = $upload->getTempKeys();
             $re = $upload->getTempKeys();
         }
         }