Skip to content

Commit 83a1681

Browse files
Bigskgitee-org
authored andcommitted
update api.php.
1 parent 09f0aae commit 83a1681

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,16 @@
187187
imagepng($canvas);//输出图片
188188
imagedestroy($canvas);//关闭进程
189189
}elseif($error == 10001){
190+
header("Content-type:application/json;charset=utf-8");
190191
echo '{"error": "10001"}';
191192
}
192193
}
193194
}else{
194195
if($_GET['donor'] == null){
196+
header("Content-type:application/json;charset=utf-8");
195197
echo '{"error": "10001"}';
196198
}elseif($_GET['team'] == null){
199+
header("Content-type:application/json;charset=utf-8");
197200
echo '{"error": "10001"}';
198201
}else{
199202
$canvas = imagecreatetruecolor(465, 92);//载入画布

0 commit comments

Comments
 (0)