正在显示
2 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -59,8 +59,8 @@ class UpdateRoute extends Command | @@ -59,8 +59,8 @@ class UpdateRoute extends Command | ||
| 59 | foreach ($list as $v){ | 59 | foreach ($list as $v){ |
| 60 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | 60 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; |
| 61 | ProjectServer::useProject($v['id']); | 61 | ProjectServer::useProject($v['id']); |
| 62 | - $this->getProduct(); | ||
| 63 | -// $this->setProductKeyword(); | 62 | +// $this->getProduct(); |
| 63 | + $this->setProductKeyword(); | ||
| 64 | DB::disconnect('custom_mysql'); | 64 | DB::disconnect('custom_mysql'); |
| 65 | } | 65 | } |
| 66 | echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; | 66 | echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; |
| @@ -23,8 +23,7 @@ define('HTTP_OPENAI_URL', 'http://openai.waimaoq.com/'); | @@ -23,8 +23,7 @@ define('HTTP_OPENAI_URL', 'http://openai.waimaoq.com/'); | ||
| 23 | if (!function_exists('generateRoute')) { | 23 | if (!function_exists('generateRoute')) { |
| 24 | function generateRoute($string) | 24 | function generateRoute($string) |
| 25 | { | 25 | { |
| 26 | - //TODO::html结尾,htm结尾,只处理.htm前面的内容 | ||
| 27 | - return trim(strtolower(preg_replace('/[^\w.]+/', '-', trim($string))), '-'); | 26 | + return str_replace(".", "", trim(strtolower(preg_replace('/[^\w.]+/', '-', trim($string))), '-')); |
| 28 | } | 27 | } |
| 29 | } | 28 | } |
| 30 | 29 |
-
请 注册 或 登录 后发表评论