mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
优化错误链接提示
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user