|
...
|
...
|
@@ -223,7 +223,7 @@ class RelayInquiry extends Command |
|
|
|
$val->status = $res ? ReInquiryForm::STATUS_SUCCESS : ReInquiryForm::STATUS_FORGO;
|
|
|
|
$val->save();
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
$this->logChannel()->info('执行询盘错误:' . $e->getMessage());
|
|
|
|
$this->logChannel()->info('执行询盘错误:',[$e->getMessage(), $e->getFile(), $e->getLine()]);
|
|
|
|
$this->output('执行询盘错误:' . $e->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -617,9 +617,10 @@ class RelayInquiry extends Command |
|
|
|
}
|
|
|
|
|
|
|
|
$text = Gpt::instance()->openai_chat_qqs($ai_command);
|
|
|
|
$text = Translate::tran($text, $lang); //再次翻译 避免AI回复的语种不准
|
|
|
|
if ($lang != 'en' && !Str::contains($lang, 'zh')) {
|
|
|
|
$text = Translate::tran($text, $lang);
|
|
|
|
}
|
|
|
|
$this->logChannel()->info("AI询盘文案", [$ai_command, $text]);
|
|
|
|
$text = Common::deal_keywords($text);
|
|
|
|
return Common::deal_str($text);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|