xiaogang 3 rokov pred
rodič
commit
401c39042a

+ 1 - 1
app/Http/Controllers/Api/TestController.php

xqd
@@ -113,7 +113,7 @@ class TestController
         try {
             $disk = Storage::disk('oss');
             $url = "https://zhengda.oss-cn-chengdu.aliyuncs.com/chengluApp/00b68aea42c3edf820a323c2ac69b2b0.jpg";
-            $res = $disk->has($url);
+            $res = $disk->exists($url);
         }catch (Exception $exception){
             dd($exception);
         }

+ 2 - 2
app/Services/UserService.php

xqd
@@ -246,8 +246,8 @@ class UserService
                 foreach ($photo as $k=>$v){
                     if($v['url']==$url){
                         $has = true;
-                        $disk = Storage::disk('oss');
-                        $disk->delete($v['url']);
+                        //$disk = Storage::disk('oss');
+                        //$disk->delete($v['url']);
 
 
                         unset($photo[$k]);