fix invalid json
This commit is contained in:
parent
54e2db0519
commit
9716aa8136
|
@ -11,7 +11,7 @@ $in=file_get_contents('php://input');
|
||||||
$params=json_decode($in, TRUE);
|
$params=json_decode($in, TRUE);
|
||||||
switch($params['action']){
|
switch($params['action']){
|
||||||
case "init":
|
case "init":
|
||||||
echo "{'name':'Stupid AI'}";
|
echo '{"name":"Stupid AI"}';
|
||||||
break;
|
break;
|
||||||
case "play-turn":
|
case "play-turn":
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user