|
...
|
...
|
@@ -92,15 +92,14 @@ class AiBlogService |
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/2/13 14:39
|
|
|
|
* @param :type=(1作者2文章) keyword=关键词 subtype=blog url=回调url
|
|
|
|
* @param :type=(1作者2文章) keyword=关键词 subtype=blog url=回调url , $title = ''
|
|
|
|
*/
|
|
|
|
public function createTask($keyword,$type = 2,$subtype = 'Blog',$anchor = []){
|
|
|
|
public function createTask($keyword,$type = 2,$subtype = 'Blog',$anchor = [],$title = ''){
|
|
|
|
$request_url = $this->url.'api/task/create';
|
|
|
|
$param = [
|
|
|
|
'keyword'=>$keyword,
|
|
|
|
'type'=>$type,
|
|
|
|
'subtype'=>$subtype,
|
|
|
|
];
|
|
|
|
$param = ['keyword'=>$keyword, 'type'=>$type, 'subtype'=>$subtype,];
|
|
|
|
if(!empty($title)){
|
|
|
|
$param['title'] = $title;
|
|
|
|
}
|
|
|
|
$param['anchor'] = $anchor;
|
|
|
|
$param['url'] = $this->route;
|
|
|
|
$param['mch_id'] = $this->mch_id;
|
...
|
...
|
|