优化错误链接提示

This commit is contained in:
2023-11-20 09:09:39 +08:00
parent c3b92ca169
commit 0b29a5351e

View File

@@ -43,7 +43,7 @@ class Post extends Common
])->where('uid', $uid)->find();
if (empty($model_post)) {
return $this->error('链接已失效', '/');
return $this->error('链接已失效', '/', 404);
}
Cache::set($cache_key, $model_post, 600);