123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use think\Db;
- /**
- * 意见反馈
- */
- class Imcheck extends Api
- {
- protected $noNeedLogin = ['keyworld_list'];
- protected $noNeedRight = ['*'];
- //网址关键词列表
- public function keyworld_list(){
- $list = Db::name('im_check_keyworld')->column('keyworld');
- $this->success('success',$list);
- }
- //IM审核
- public function addone(){
- $content = input('content','');
- $data = [
- 'user_id' => $this->auth->id,
- 'content' => $content,
- 'createtime' => time(),
- ];
- $id = Db::name('im_check')->insertGetId($data);
- $this->success();
- }
- }
|