12345678910111213141516171819202122232425262728 |
- <?php
- namespace User\Lib;
- use Dever;
- class Feedback
- {
- # 发表信息
- public function submit($uid, $pic, $content, $info_id, $type)
- {
- $where['uid'] = $uid;
- $where['info_id'] = $info_id;
- $where['content'] = $content;
- if ($pic) {
- $where['pic'] = $pic;
- }
- $table = 'user/feedback';
- $info = false;
- if (!$info) {
- Dever::db($table)->insert($where);
- Dever::score($uid, 'submit_feedback', '发布反馈', false, false, false, $type, $info_id);
- }
- return true;
- }
- }
|