userId); return $this->data($result); } /** * @notes 签到 * @return \think\response\Json * @author Tab * @date 2021/8/16 16:49 */ public function sign() { if(!$this->request->isPost()) { return $this->fail('请求方式错误'); } $result = SignLogic::sign($this->userId); if($result) { return $this->success('恭喜您签到成功啦', $result); } return $this->fail(SignLogic::getError()); } /** * @notes 获取签到说明 * @return \think\response\Json * @author Tab * @date 2021/8/16 18:21 */ public function getRemark() { $result = ['remark' => ConfigService::get('sign', 'remark')]; return $this->data($result); } }