这是手机客户端和手机网页端的PHP签到代码,楼主能否改造一下,毕竟模拟手机客户端的签到分数比电脑端高几倍
[PHP] 纯文本查看 复制代码 /**
* 50贴吧客户端一键签到
*/
public static function DoSign_Onekey($uid,$kw,$id,$pid,$fid,$ck) {
$ch = new wcurl('http://c.tieba.baidu.com/c/c/forum/msign', array(
'User-Agent: bdtb for Android 6.5.8'
));
$ch->addcookie(array('BDUSS' => $ck));
$temp = array(
'BDUSS' => misc::getCookie($pid),
'_client_id' => '03-00-DA-59-05-00-72-96-06-00-01-00-04-00-4C-43-01-00-34-F4-02-00-BC-25-09-00-4E-36',
'_client_type' => '4',
'_client_version' => '1.2.1.17',
'_phone_imei' => '540b43b59d21b7a4824e1fd31b08e9a6',
'fid' => $fid,
'kw' => $kw,
'net_type' => '3',
'tbs' => misc::getTbs($uid,$ck)
);
self::addTiebaSign($temp);
return $ch->post($temp);
}
/**
* 手机网页签到
*/
public static function DoSign_Mobile($uid,$kw,$id,$pid,$fid,$ck) {
//没问题了
$ch = new wcurl('http://tieba.baidu.com/mo/q/sign?tbs='.misc::getTbs($uid,$ck).'&kw='.urlencode($kw).'&is_like=1&fid='.$fid ,array('User-Agent: fuck phone','Referer: http://tieba.baidu.com/f?kw='.$kw , 'Host: tieba.baidu.com','X-Forwarded-For: 115.28.1.'.mt_rand(1,255), 'Origin: http://tieba.baidu.com', 'Connection: Keep-Alive'));
$ch->addcookie(array('BDUSS' => $ck,'BAIDUID' => strtoupper(md5(time()))));
return $ch->exec();
}
/**
* 网页签到
*/ |