消息添加文章标题和链接

This commit is contained in:
Y!an 2018-02-20 00:08:01 +08:00
parent 6a162b5609
commit 6c39ddc9ac
2 changed files with 11 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class Comment2Wechat_Plugin implements Typecho_Plugin_Interface
$sckey = $options->plugin('Comment2Wechat')->sckey; $sckey = $options->plugin('Comment2Wechat')->sckey;
$text = "有人在您的博客发表了评论"; $text = "有人在您的博客发表了评论";
$desp = "**".$comment['author']."** 在你的博客中说到:\n\n > ".$comment['text']; $desp = "**".$comment['author']."** 在 [「".$post->title."」](".$post->permalink." \"".$post->title."\") 中说到: \n\n > ".$comment['text'];
$postdata = http_build_query( $postdata = http_build_query(
array( array(

View File

@ -15,3 +15,11 @@
## 截图 ## 截图
![微信截图](wechat.png) ![微信截图](wechat.png)
## 更新记录
- v1.1(180220)
- [+]消息添加文章标题和链接
- v1.0(160720)
- init