member_cache['payapi'][$name]; require $apifile; } elseif (IS_API === 'cron') { // 任务脚本 $cron = new \Phpcmf\Control\Api\Run($this); $cron->index(); } elseif (is_file(IS_API)) { // 自定义任意目录的api require IS_API; } else { $myfile = MYPATH.'Api/'.ucfirst(IS_API).'.php'; if (!is_file($myfile)) { if (IS_DEV) { exit('Api接口文件('.$myfile.')不存在'); } exit('api file is error'); } require $myfile; exit; } exit; } }