阿里图床复活
function submit($file_path){
$url = 'https://kfupload.alibaba.com/kupload';
$data = [];
$data['scene'] = 'aeMessageCenterV2ImageRule';
$data['name'] = 'player.png';
$data['file'] = new CURLFile(realpath($file_path));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
$hothead[] = "Accept:application/json";
$hothead[] = "Accept-Encoding:gzip,deflate,sdch";
$hothead[] = "Accept-Language:zh-CN,zh;q=0.8";
$hothead[] = "Connection:close";
$ip = mt_rand(48, 140) . "." . mt_rand(10, 240) . "." . mt_rand(10, 240) . "." . mt_rand(10, 240);
$hothead[] = 'CLIENT-IP:' . $ip;
$hothead[] = 'X-FORWARDED-FOR:' . $ip;
curl_setopt($ch, CURLOPT_HTTPHEADER, $hothead);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_USERAGENT, 'Dalvik/2.1.0 (Linux; U; Android 10; ONEPLUS A5010 Build/QKQ1.191014.012)');
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$html = @curl_exec($ch);
curl_close($ch);
$json = @json_decode($html, true);
if ($json['code'] == '0') {
@unlink($file_path);
$file_path = $json['url'];
}
return $file_path;
}
ua必须这个 小白的我不会用 这是php吗?https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif 然后封号,玩不起来 阿里删图太猛了https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif :@:@ php的 封jm,一个ip别穿太太多,也不用账号mjj :(你那俩太阳怎么来滴 阿里删图太厉害了
我是萌新
请你放心
https://img.github.luxe/2022/ec3a465101d09.jpg
页:
[1]