post()->goCheck('apiadd'); $result = TenantRegisterLogic::add($params); if (true === $result) { return $this->success('入驻成功', [], 1, 1); } return $this->fail(TenantRegisterLogic::getError()); } /** * 协议详情 * @return \think\response\Json */ public function agreement_detail() { $type = $this->request->get('type/s', ''); $result = TenantAgreeLogic::getAgreeByType($type,$this->userId); return $this->data($result); } /** * 协议签名 * @return \think\response\Json */ public function agreeSign() { $params = (new MasterWorkerAgreeValidate())->post()->goCheck('sign', [ 'user_id' => $this->userId, 'user_info' => $this->userInfo ]); $result = TenantAgreeLogic::sign($params); if (false === $result) { return $this->fail(TenantAgreeLogic::getError()); } return $this->success('签名成功', [], 1, 1); } }