diff --git a/.gitignore b/.gitignore
index f78da738c8cabd0a12127bb36a41105dcb9e5e77..91c4ae6080fe9e0041571b48ad518c0bc7044eb9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/runtime
+/public/upload/users/head/[0-9]*[0-9]/**
diff --git a/app/web/controller/Community.php b/app/web/controller/Community.php
index 2479202d1b2d1f7a8cd6d5da2fb933c0d1ab5331..4a5f5f5226eaf9d4b25d54916f2e714d2b168a66 100644
--- a/app/web/controller/Community.php
+++ b/app/web/controller/Community.php
@@ -120,7 +120,13 @@ class Community extends Base {
if($from==$to) return ;
$data['user_id']=$to;
$data['status']=1;
- $data['content']='系统消息:用户'.$from.'赞了你的文章';
+
+ $info = db('topic')->find($tid);
+ if(empty($info))
+ return;
+ $this->assign('from', $from);
+ $this->assign('title', $info['title']);
+ $data['content']=$this->fetch("send_support_message");
$data['time']=time();
db('message')->insert($data);
}
diff --git a/app/web/view/pc/community/send_support_message.html b/app/web/view/pc/community/send_support_message.html
new file mode 100644
index 0000000000000000000000000000000000000000..ed1c740fc90dc1294b93b93cff845d7ab0e23d45
--- /dev/null
+++ b/app/web/view/pc/community/send_support_message.html
@@ -0,0 +1,7 @@
+系统消息:用户
+
+ {$from}
+赞了
+
+ {$title}这篇文章
+
\ No newline at end of file