update api.php.
This commit is contained in:
parent
09f0aaed51
commit
83a1681634
3
api.php
3
api.php
@ -187,13 +187,16 @@ if($_GET['mode'] == 'advanced'){//判断是否是高级模式
|
|||||||
imagepng($canvas);//输出图片
|
imagepng($canvas);//输出图片
|
||||||
imagedestroy($canvas);//关闭进程
|
imagedestroy($canvas);//关闭进程
|
||||||
}elseif($error == 10001){
|
}elseif($error == 10001){
|
||||||
|
header("Content-type:application/json;charset=utf-8");
|
||||||
echo '{"error": "10001"}';
|
echo '{"error": "10001"}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if($_GET['donor'] == null){
|
if($_GET['donor'] == null){
|
||||||
|
header("Content-type:application/json;charset=utf-8");
|
||||||
echo '{"error": "10001"}';
|
echo '{"error": "10001"}';
|
||||||
}elseif($_GET['team'] == null){
|
}elseif($_GET['team'] == null){
|
||||||
|
header("Content-type:application/json;charset=utf-8");
|
||||||
echo '{"error": "10001"}';
|
echo '{"error": "10001"}';
|
||||||
}else{
|
}else{
|
||||||
$canvas = imagecreatetruecolor(465, 92);//载入画布
|
$canvas = imagecreatetruecolor(465, 92);//载入画布
|
||||||
|
Loading…
Reference in New Issue
Block a user