~~~
/**
* 添加關鍵詞任務
*
*/
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);
}
~~~
~~~
~~~