|
...
|
...
|
@@ -23,8 +23,7 @@ define('HTTP_OPENAI_URL', 'http://openai.waimaoq.com/'); |
|
|
|
if (!function_exists('generateRoute')) {
|
|
|
|
function generateRoute($string)
|
|
|
|
{
|
|
|
|
//TODO::html结尾,htm结尾,只处理.htm前面的内容
|
|
|
|
return trim(strtolower(preg_replace('/[^\w.]+/', '-', trim($string))), '-');
|
|
|
|
return str_replace(".", "", trim(strtolower(preg_replace('/[^\w.]+/', '-', trim($string))), '-'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|