| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * @package merchant
- *
- * @author xaboy<xaboy2005@qq.com>
- * @day 2020/5/28
- *
- *
- */
- namespace app\controller\api\user;
- use crmeb\basic\BaseController;
- // use app\common\repositories\user\FeedbackRepository;
- use app\validate\api\InformationValidate;
- use think\App;
- class Information extends BaseController
- {
- protected $repository;
- public function __construct(App $app, FeedbackRepository $repository)
- {
- parent::__construct($app);
- // $this->repository = $repository;
- }
- /**
-
- * @return mixed
- * @author xaboy
- * @day 2020/5/28
- */
- public function postinfo(FeedbackValidate $validate)
- {
- $data = $this->request->params(['type', 'content', ['images', []], 'realname', 'contact']);
- $validate->check($data);
- $data['uid'] = $this->request->uid();
- $this->repository->create($data);
- return app('json')->success('反馈成功');
- }
- }
|