作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !3347
... ... @@ -93,13 +93,13 @@ class GeoWritingsTaskLogic extends BaseLogic
$prefix = isset($this->param['prefix']) && $this->param['prefix'] ? $this->param['prefix'] : '';
$keyword = isset($this->param['keyword']) && $this->param['keyword'] ? $this->param['keyword'] : '';
$suffix = isset($this->param['suffix']) && $this->param['suffix'] ? $this->param['suffix'] : '';
$event_content = isset($this->param['event_content']) && $this->param['event_content'] ? $this->param['event_content'] : '';
$event_title = isset($this->param['event_title']) && $this->param['event_title'] ? $this->param['event_title'] : '';
$desc = '帮我写1个有吸引力的英文新闻标题,并确保这个标题在Google上面唯一存在的,只需要回复我标题,不需要别的内容(比如序号、你的提示、寒暄、解释、注释之类的),标题不要超过100字符数。';
$config_title = [
"brand" => "请根据公司品牌词:{$brand}",
"keyword" => "和这个公司产品的关键词:{$prefix}{$keyword}{$suffix}",
"event_content" => "以及公司参与的事件内容:{$event_content}",
"event_title" => "以及公司参与的事件:{$event_title}",
"desc" => $desc
];
foreach ($config_title as $k => $v) {
... ... @@ -121,6 +121,7 @@ class GeoWritingsTaskLogic extends BaseLogic
{
$title = isset($this->param['title']) && $this->param['title'] ? $this->param['title'] : '';
$description = isset($this->param['description']) && $this->param['description'] ? $this->param['description'] : '';
$event_title = isset($this->param['event_title']) && $this->param['event_title'] ? $this->param['event_title'] : '';
$event_content = isset($this->param['event_content']) && $this->param['event_content'] ? $this->param['event_content'] : '';
$keyword = isset($this->param['keyword']) && $this->param['keyword'] ? $this->param['keyword'] : '';
$prefix = isset($this->param['prefix']) && $this->param['prefix'] ? $this->param['prefix'] : '';
... ... @@ -135,7 +136,8 @@ class GeoWritingsTaskLogic extends BaseLogic
$config_introduction = [
"title" => "请根据这个文章标题:{$title}",
"description" => "并同时参考公司的介绍:{$description}",
"event_content" => "以及公司参与的事件内容:{$event_content}",
"event_title" => "结合公司参与的事件:{$event_title}",
"event_content" => "以及公司参与事件的详细内容:{$event_content}",
"introduction" => $introduction,
"industry" => "引言内容请参考并引用'{$industry}'行业的一些专业数据报告",
"character" => $character,
... ... @@ -156,7 +158,8 @@ class GeoWritingsTaskLogic extends BaseLogic
$config_content = [
"title" => "请根据这个文章标题:{$title}",
"description" => "并同时参考公司的介绍:{$description}",
"event_content" => "以及公司参与的事件内容:{$event_content}",
"event_title" => "结合公司参与的事件:{$event_title}",
"event_content" => "以及公司参与事件的详细内容:{$event_content}",
"content" => $content,
"keyword" => "正文内容请参考并引用'{$prefix}{$keyword}{$suffix}'行业的一些专业数据报告",
"character" => $character,
... ...