浏览代码

Update StoryController, fix cache crop bug

Daniel Supernault 4 年之前
父节点
当前提交
c2f8faaeee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/StoryController.php

+ 1 - 1
app/Http/Controllers/StoryController.php

@@ -71,7 +71,7 @@ class StoryController extends Controller
 			'code' => 200,
 			'msg'  => 'Successfully added',
 			'media_id' => (string) $story->id,
-			'media_url' => url(Storage::url($url)),
+			'media_url' => url(Storage::url($url)) . '?v=' . time(),
 			'media_type' => $story->type
 		];
 	}