作者 李宇航

合并分支 'lyh-server' 到 'master'

gxAiblog自动发布



查看合并请求 !2001
... ... @@ -128,7 +128,7 @@ class AiBlogAutoPublish extends Command
public function createTask($keywords, $project_id, $frequency){
$keyword = $keywords[array_rand($keywords)];
$aiBlogService = new AiBlogService($project_id);
$result = $aiBlogService->setRoute($keyword)->createTask($keyword);
$result = $aiBlogService->createTask($keyword);
if ($result['status'] == 200) {
$aiBlogTaskModel = new AiBlogTaskModel();
$next_auto_date = date('Y-m-d', strtotime('+' . mt_rand($frequency[0],$frequency[1]) . 'days')); //每3-6天自动发布
... ...
... ... @@ -99,7 +99,6 @@ class AiBlogService
$param['title'] = $title;
}
$param['anchor'] = $anchor;
$param['url'] = $this->route;
$param['mch_id'] = $this->mch_id;
$param['template_id'] = 1;
$this->sign = $this->generateSign($param,$this->key);
... ...