diff --git a/app/web/controller/Community.php b/app/web/controller/Community.php index 4a5f5f5226eaf9d4b25d54916f2e714d2b168a66..8901995eee26a3335fb9edda9416b4f3f41afcea 100644 --- a/app/web/controller/Community.php +++ b/app/web/controller/Community.php @@ -126,6 +126,7 @@ class Community extends Base { return; $this->assign('from', $from); $this->assign('title', $info['title']); + $this->assign('tid',$tid); $data['content']=$this->fetch("send_support_message"); $data['time']=time(); db('message')->insert($data); diff --git a/app/web/controller/Contest.php b/app/web/controller/Contest.php index 49fe27ced20ab6093f8c8660a41e26197f52fb62..3d62856bdcb9bca2e5fd6cbd3990d62420aeb93a 100644 --- a/app/web/controller/Contest.php +++ b/app/web/controller/Contest.php @@ -327,6 +327,7 @@ class Contest extends Base { $this->show_nav($cid); $this->judge_start($cid); $this->seal_ranklist($cid); + $this->assign("user_id",$this->user_id); return $this->fetch(); } public function input_password($cid) { //私人比赛输入密码 diff --git a/app/web/view/pc/community/send_support_message.html b/app/web/view/pc/community/send_support_message.html index ed1c740fc90dc1294b93b93cff845d7ab0e23d45..3b908d61a9c2fa2a2ff1291f3c60839ecd64fa62 100644 --- a/app/web/view/pc/community/send_support_message.html +++ b/app/web/view/pc/community/send_support_message.html @@ -1,7 +1,7 @@ 系统消息:用户 - + {$from} 赞了 - + {$title}这篇文章 \ No newline at end of file diff --git a/app/web/view/pc/contest/ranklist.html b/app/web/view/pc/contest/ranklist.html index a995e008b654c49881121b4110402897133de06f..69e4fda32ea02d62599c3b565490b528d1ca0e55 100644 --- a/app/web/view/pc/contest/ranklist.html +++ b/app/web/view/pc/contest/ranklist.html @@ -38,10 +38,10 @@ {foreach name="user" item="v" key="k"}