update api.php.

This commit is contained in:
Bigsk 2020-10-01 00:36:47 +08:00 committed by Gitee
parent 09f0aaed51
commit 83a1681634

View File

@ -187,13 +187,16 @@ if($_GET['mode'] == 'advanced'){//判断是否是高级模式
imagepng($canvas);//输出图片
imagedestroy($canvas);//关闭进程
}elseif($error == 10001){
header("Content-type:application/json;charset=utf-8");
echo '{"error": "10001"}';
}
}
}else{
if($_GET['donor'] == null){
header("Content-type:application/json;charset=utf-8");
echo '{"error": "10001"}';
}elseif($_GET['team'] == null){
header("Content-type:application/json;charset=utf-8");
echo '{"error": "10001"}';
}else{
$canvas = imagecreatetruecolor(465, 92);//载入画布