Skip to content

Commit

Permalink
update api.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigsk authored and gitee-org committed Sep 30, 2020
1 parent 09f0aae commit 83a1681
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,16 @@
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);//载入画布
Expand Down

0 comments on commit 83a1681

Please sign in to comment.