getRootPath() . 'vendor/autoload.php'; use app\service\XyCdssService; use think\facade\Db; use think\facade\Request; use think\response\Json; class XyCdssInterface extends CommonTwoController { public function OutPatientRecord(){ $params = Request::post(); return XyCdssService::getInstance()->getResult($params); } }