我正在开发一个视频应用程序并将文件存储在AWS S3上,使用默认URL https://***.amazonaws.com/***工作正常,但我决定使用CloudFront,这对内容交付更快.
使用CF,我一直在403 (Forbidden)使用这个URL https://***.cloudfront.net/***.我错过了什么吗?
在我决定从CloudFront加载指向我的存储桶的内容之前,一切正常.
有解决方案吗?
我想从中删除重复值,如您所见list_title.我知道有几个问题和答案,但他们的解决方案对我不起作用.
这是我尝试过的:
$uniqueArray = array_map("unserialize", array_unique(array_map("serialize", $notify)));
Run Code Online (Sandbox Code Playgroud)
结果:
Array
(
[0] => Array
(
[list_id] => 86
[list_reference] => 130948
[list_title] => Offer: apartment 2+kk
[list_city] => Prague
[list_date] => 2017-03-03 11:20:35
[list_status] => 0
[list_creator] => Company A
[list_price] => 30000
[list_furniture] => ["1","0","0"]
[list_accommodation] => flat
)
[1] => Array
(
[list_id] => 87
[list_reference] => 130947
[list_title] => Offer: apartment 2+kk
[list_date] => 2017-03-03 11:20:35
[list_status] => 0
[list_creator] => Company B
[list_price] => 30000 …Run Code Online (Sandbox Code Playgroud)