Feedback.php 616 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace User\Lib;
  3. use Dever;
  4. class Feedback
  5. {
  6. # 发表信息
  7. public function submit($uid, $pic, $content, $info_id, $type)
  8. {
  9. $where['uid'] = $uid;
  10. $where['info_id'] = $info_id;
  11. $where['content'] = $content;
  12. if ($pic) {
  13. $where['pic'] = $pic;
  14. }
  15. $table = 'user/feedback';
  16. $info = false;
  17. if (!$info) {
  18. Dever::db($table)->insert($where);
  19. Dever::score($uid, 'submit_feedback', '发布反馈', false, false, false, $type, $info_id);
  20. }
  21. return true;
  22. }
  23. }