优化url,多应用之间不能互相根据路由生成url,没有研究透

This commit is contained in:
augushong
2020-08-15 00:08:16 +08:00
parent 5ad73e5540
commit 45f8a09b1c
9 changed files with 24 additions and 11 deletions

View File

@@ -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;