正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -53,7 +53,6 @@ class UpdateController extends BaseController | @@ -53,7 +53,6 @@ class UpdateController extends BaseController | ||
| 53 | if(!isset($seo_arr['title'])){ | 53 | if(!isset($seo_arr['title'])){ |
| 54 | //生成seo_title | 54 | //生成seo_title |
| 55 | $seo_arr['title'] = $this->ai_send('product_seo_title',$v['title']); | 55 | $seo_arr['title'] = $this->ai_send('product_seo_title',$v['title']); |
| 56 | - | ||
| 57 | } | 56 | } |
| 58 | //更新seo_keyword | 57 | //更新seo_keyword |
| 59 | if(!isset($seo_arr['keyword'])){ | 58 | if(!isset($seo_arr['keyword'])){ |
| @@ -119,8 +118,6 @@ class UpdateController extends BaseController | @@ -119,8 +118,6 @@ class UpdateController extends BaseController | ||
| 119 | 'keywords'=>$keywords, | 118 | 'keywords'=>$keywords, |
| 120 | ]; | 119 | ]; |
| 121 | $data = Common::send_openai_msg($chat_url,$param); | 120 | $data = Common::send_openai_msg($chat_url,$param); |
| 122 | - var_dump($data); | ||
| 123 | - die(); | ||
| 124 | - return $data; | 121 | + return $data['text']; |
| 125 | } | 122 | } |
| 126 | } | 123 | } |
-
请 注册 或 登录 后发表评论