ThinkSNS评论API-comment notify()

来自站长百科
Zhou3158讨论 | 贡献2010年5月23日 (日) 16:57的版本 (新页面: <span style="text-align:center; border:1px solid #000; float:right; padding:6px;"><strong>导航:</strong> 上一页</span> <div style="clear:both;"></div> *'''评论[[API]...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

导航: 上一页


1、comment_notify($type, $data, $appid)

功能说明: 发送通知。

参数说明

  • type string 评论的类型。在模型里是$type."_comment"的形式的模型名称
  • appid int 应用注册ID
  • $data array 数组。其中内容必须都传递
  • $data['toUid'] 当评论js 回调函数执行的时候传递过来的数组中的toUid
  • $data['uids'] 评论主体的uid;
  • $data['url'] 被评论页面的完整url
  • $data['title_body']['comment] 通知的内容
  • $data['title_data']['title'] 被评论内容的标题
  • $data['title_data']['type'] 被评论应用的中文名


参考资料[ ]