mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
优化url,多应用之间不能互相根据路由生成url,没有研究透
This commit is contained in:
@@ -47,11 +47,11 @@ class Post extends Common
|
||||
* @param int $id
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function read($id)
|
||||
public function read($uid)
|
||||
{
|
||||
//
|
||||
|
||||
$model_post = ModelPost::find($id);
|
||||
$model_post = ModelPost::where('uid',$uid)->find();
|
||||
|
||||
$model_post->hits = $model_post->hits + 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user