1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2025-09-06 07:37:40 +00:00

add server status and fix some bug...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-15 20:50:47 +08:00
parent ec7a26a582
commit 3340847e38
8 changed files with 235 additions and 152 deletions

View File

@ -0,0 +1,8 @@
<?php
class server_status extends AmysqlController {
function getinfo() {
$info = $this -> _model('server_model') -> QueryMinecraft( $_REQUEST ['ip'], $_REQUEST ['port'] );
return $info;
}
}
?>

View File

@ -4,7 +4,9 @@ class user_current extends AmysqlController
function current()
{
$money = $this -> _model('current_model') -> money_current($_REQUEST['user']);
if(!$money){
JsonError( "未查询到账号信息!" );
}
JsonSuccess( $money );
}
}