mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
失效链接跳转
This commit is contained in:
@@ -58,6 +58,10 @@ class Post extends Common
|
|||||||
}
|
}
|
||||||
])->where('uid', $uid)->find();
|
])->where('uid', $uid)->find();
|
||||||
|
|
||||||
|
if (empty($model_post)) {
|
||||||
|
return $this->error('链接已失效', '/');
|
||||||
|
}
|
||||||
|
|
||||||
$model_post->hits = $model_post->hits + 1;
|
$model_post->hits = $model_post->hits + 1;
|
||||||
|
|
||||||
$model_post->save();
|
$model_post->save();
|
||||||
|
|||||||
Reference in New Issue
Block a user