~~~
/**
* 添加关键词任务
*
*/
public function addtask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/addtask';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'type' => $aes->encrypt(1),// $typeList= array ('1' => '百度PC','2' => '搜狗PC','3' => '360PC','4' => '百度Wap','5' => '搜狗Wap','6' => '360Wap','7' => '神马搜索',);
'url' => $aes->encrypt('http://www.ceshi.cn'),
'optimize_days' => $aes->encrypt(30),//$optimize_days = array('30'=> '30天','60'=> '60天','90'=> '90天','180'=> '180天','360'=> '360天');
'keyword' => $aes->encrypt('seo优化,电话分机'),//以英文逗号个隔开
'tasktype' => '', //暂时默认为空
'urlmode' => $aes->encrypt('1') //精准:0, 匹配:1
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 上下架关键词任务
*
*/
public function shelftask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/shelftask';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'type' => $aes->encrypt(1),// 1:上架,0:下架
'ids' => $aes->encrypt('94108,94175,94567'),// 为平台方关键词任务ID(多个或者一个关键词任务ID)
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 更新上下架申请
*
*/
public function updateshelftask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/updateshelftask';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'ids' => $aes->encrypt('94108,94107'),// 为平台方关键词任务上下架申请ID
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 更新关键词任务
*
*/
public function updatetask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/updatetask';
$account = '15364201697';
$password = '123456';
$salt = 'Dpk41K';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'ids' => $aes->encrypt('94108,94107'),// 为平台方关键词任务ID
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 获取所有关键词任务
*
*/
public function getAllTask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/getAllTask';
$account = '15364201697';
$password = '123456';
$salt = 'Dpk41K';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 提交报错信息
*/
public function adderror()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/adderror';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'ids' => $aes->encrypt('94108,94175,94567'),// 为平台方关键词任务ID(多个或者一个关键词任务ID)
'description' => $aes->encrypt('排名不在百度首页'),// 报错原因
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 更新关键词报错
*
*/
public function updateerror()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/updateerror';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'ids' => $aes->encrypt('29987,29988,29989'),// 为平台方关键词报错ID
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 申请删除任务
*/
public function applyDelTask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/applyDelTask';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'ids' => $aes->encrypt('29987,29988,29989'),// 为平台方关键词申请删除任务ID
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 更新删词申请任务
*/
public function UpdateApplyDelTask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/UpdateApplyDelTask';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'ids' => $aes->encrypt('29987,29988,29989'),// 为平台方关键词申请删除任务ID
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 删除未审核或审核不通过的任务
*/
public function DelVerifyTask()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong1/DelVerifyTask';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'ids' => $aes->encrypt('73613,73620'),// 为平台方关键词任务ID(状态必须为0或3)
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
//查询价格
public function queryprices()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/queryprices';
$account = '15364201697';
$password = '123456';
$salt = 'em6GPY';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'keyword' => $aes->encrypt('广泛广5泛3217风格,的还公753司521的股份贷款,附件打搞357个21开打开'),
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
/**
* 消费记录查询
*
*/
public function findConsume()
{
$url = 'http://seo.yuntianxia.cn/user/Wangtong/findConsume';
$account = '15364201697';
$password = '123456';
$salt = 'Dpk41K';
$key = 'd39fc83nfcf89239rrnc927v63jnffcf93';
$aes = new Aes($key);
$params = [
'account' => $aes->encrypt($account),
'password' => $aes->encrypt(md5(md5($password) . $salt)),
'task_id' => $aes->encrypt(322),// 必须是整数,如果任务ID参数为空,就赋值为0。如果参数为多个,就例如:$aes->encrypt("125,3893,89372")
'starttime' => $aes->encrypt(1565582396),// 开始时间,必须是时间戳,如果时间参数为空,就赋值为0
'endtime' => $aes->encrypt(1565582406),// 结束时间,必须是时间戳,如果时间参数为空,就赋值为0
];
$params = json_encode($params);
$result = post_curl($url, $params);
var_dump($result);
}
~~~
~~~
~~~