| xqd
@@ -111,9 +111,14 @@ class TestController
|
|
|
|
|
|
public function jg_auth(){
|
|
|
try {
|
|
|
+ $oss_config = config("filesystems.disks.oss");
|
|
|
+ $head = "https://".$oss_config['bucket'].'.'.$oss_config['endpoint'].'/';
|
|
|
$disk = Storage::disk('oss');
|
|
|
- $url = "chengluApp/01b28f06-6d45-4e65-a6b7-b96d00f463053878084743848124214.jpg";
|
|
|
- $res = $disk->exists($url);
|
|
|
+ $url = "https://zhengda.oss-cn-chengdu.aliyuncs.com/chengluApp/01b28f06-6d45-4e65-a6b7-b96d00f463053878084743848124214.jpg";
|
|
|
+
|
|
|
+ $url2 = str_replace($head,"",$url);
|
|
|
+ dd($url2);
|
|
|
+ $res = $disk->exists($url2);
|
|
|
}catch (\Exception $exception){
|
|
|
dd($exception);
|
|
|
}
|