repository = $repository; } /** * TODO 积分日志 * @return \think\response\Json * @author Qinii * @day 6/9/21 */ public function getList() { [$page, $limit] = $this->getPage(); $where = $this->request->params(['keyword', 'date']); $where['category'] = 'mer_integral'; $where['mer_id'] = $this->request->merId(); return app('json')->success($this->repository->getList($where, $page, $limit)); } /** * TODO * @return \think\response\Json * @author Qinii * @day 6/9/21 */ public function getTitle() { return app('json')->success($this->repository->getStat($this->request->merId())); } }