success('', [$this->userInfo, $this->userId]); } /** * @notes 首页访客记录 * @author Tab * @date 2021/9/11 9:16 */ public function visit() { $result = IndexLogic::visit($this->userId); if ($result) { return $this->success(''); } return $this->fail(IndexLogic::getError(), [], 0, 0); } }