Skip to content

增加taskid参数,用于批量cid发送 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions request/push/GTPushRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ class GTPushRequest extends GTApiRequest
private $tagList;
//根据标签过滤用户并推送。支持定时、定速功能。用于使用标签快速推送
private $fastCustomTag;
//设置taskid,用于批量cid推送
private $taskid;

public function getTaskid() {
return $this->taskid;
}

public function setTaskid($taskid){
$this->taskid = $taskid;
}

public function getFastCustomTag()
{
Expand Down Expand Up @@ -185,6 +195,9 @@ public function getApiParam()
$audience["fast_custom_tag"] = $this->fastCustomTag;
$this->apiParam["audience"] = $audience;
}
if($this->taskid !=null){
$this->apiParam["taskid"] = $this->taskid;
}
return $this->apiParam;
}
}