#418 | if(!$modelfile) { |
#419 | throw new Exception(CURRENT_APP_NAME."模型 $modelname 文件不存在"); |
#420 | } |
#421 | }else{ |
#422 | throw new Exception("模型 $modelname 文件不存在"); |
#423 | } |
#424 | } |
#425 | |
#426 | $s = file_get_contents($modelfile); |
#427 | $s = preg_replace_callback('#\t*\/\/\s*hook\s+([\w\.]+)[\r\n]#', array('core', 'process_hook'), $s); // 处理 hook |