parent
625b246229
commit
78476575ad
4 changed files with 135 additions and 1 deletions
@ -0,0 +1,33 @@ |
||||
<?php |
||||
header('Access-Control-Allow-Origin:*'); |
||||
|
||||
|
||||
if(!isset($_REQUEST['k'])){ |
||||
header('Content-type: image/jpg'); |
||||
|
||||
if($_REQUEST['i'] == "chino"){ |
||||
$id = mt_rand(1,112); |
||||
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/acg/chino/".$id.".jpg"); |
||||
}elseif($_REQUEST['i'] == "background"){ |
||||
$id = mt_rand(1,4); |
||||
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/acg/bc/".$id.".jpg"); |
||||
}else{ |
||||
$id = mt_rand(1,157); |
||||
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/acg/moe/".$id.".jpg"); |
||||
} |
||||
}else{ |
||||
|
||||
if($_REQUEST['i'] == "chino"){ |
||||
$id = mt_rand(1,112); |
||||
header("Location: https://yimian-image.obs.myhwclouds.com/acg/chino/".$id.".jpg"); |
||||
}elseif($_REQUEST['i'] == "background"){ |
||||
$id = mt_rand(1,4); |
||||
header("Location: https://yimian-image.obs.myhwclouds.com/acg/bc/".$id.".jpg"); |
||||
}else{ |
||||
$id = mt_rand(1,157); |
||||
header("Location: https://yimian-image.obs.myhwclouds.com/acg/moe/".$id.".jpg"); |
||||
} |
||||
} |
||||
|
||||
|
||||
die(); |
@ -0,0 +1,39 @@ |
||||
<?php |
||||
header('Access-Control-Allow-Origin:*'); |
||||
|
||||
|
||||
if(!isset($_REQUEST['k'])){ |
||||
header('Content-type: image/jpg'); |
||||
|
||||
if($_REQUEST['i'] == "middleSchoolGraduate"){ |
||||
$id = mt_rand(1,100); |
||||
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/middleSchoolGraduate/".$id.".jpeg"); |
||||
}elseif($_REQUEST['i'] == "mountTai2014"){ |
||||
$id = mt_rand(1,40); |
||||
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/mountTai2014/".$id.".jpeg"); |
||||
}elseif($_REQUEST['i'] == "songshanShaolin2011"){ |
||||
$id = mt_rand(1,500); |
||||
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/songshanShaolin2011/".$id.".jpeg"); |
||||
}elseif($_REQUEST['i'] == "tsingzhuTaishan2014"){ |
||||
$id = mt_rand(1,318); |
||||
echo file_get_contents("https://yimian-image.obs.myhwclouds.com/photo/tsingzhuTaishan2014/".$id.".jpeg"); |
||||
} |
||||
}else{ |
||||
|
||||
if($_REQUEST['i'] == "middleSchoolGraduate"){ |
||||
$id = mt_rand(1,100); |
||||
header("Location: https://yimian-image.obs.myhwclouds.com/photo/middleSchoolGraduate/".$id.".jpeg"); |
||||
}elseif($_REQUEST['i'] == "mountTai2014"){ |
||||
$id = mt_rand(1,40); |
||||
header("Location: https://yimian-image.obs.myhwclouds.com/photo/mountTai2014/".$id.".jpeg"); |
||||
}elseif($_REQUEST['i'] == "songshanShaolin2011"){ |
||||
$id = mt_rand(1,500); |
||||
header("Location: https://yimian-image.obs.myhwclouds.com/photo/songshanShaolin2011/".$id.".jpeg"); |
||||
}elseif($_REQUEST['i'] == "tsingzhuTaishan2014"){ |
||||
$id = mt_rand(1,318); |
||||
header("Location: https://yimian-image.obs.myhwclouds.com/photo/tsingzhuTaishan2014/".$id.".jpeg"); |
||||
} |
||||
} |
||||
|
||||
|
||||
die(); |
Loading…
Reference in new issue