| #433 | if(!$modelfile) { |
| #434 | throw new Exception(CURRENT_APP_NAME."模型 $modelname 文件不存在"); |
| #435 | } |
| #436 | }else{ |
| #437 | throw new Exception("模型 $modelname 文件不存在"); |
| #438 | } |
| #439 | } |
| #440 | |
| #441 | $s = file_get_contents($modelfile); |
| #442 | $s = preg_replace_callback('#\t*\/\/\s*hook\s+([\w\.]+)[\r\n]#', array('core', 'process_hook'), $s); // 处理 hook |