checkToken(); if ($token['code'] < 0) return $this->response($token); $member_id = $this->member_id; $id = input('id'); $hycmemberId = input('hycmemberId'); $trans_seq_id = input('transSeqId'); $contractId = input('contractId'); $status = input('status'); if ($hycmemberId && $trans_seq_id) { $ExternalApi = new ExternalApi($this->site_id, $member_id); if (!$contractId) { $res = $ExternalApi->personalContractCreate($id, $hycmemberId); } else { $res = $ExternalApi->personalContractQuery($contractId); } return $this->response($res); } return $this->response(error(-1, '参数错误')); } }