mirror of
				https://e.coding.net/circlecloud/McAccount.git
				synced 2025-11-03 17:56:24 +00:00 
			
		
		
		
	add server status and fix some bug...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
		
							
								
								
									
										8
									
								
								Controller/server_status.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Controller/server_status.php
									
									
									
									
									
										Normal 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;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
@@ -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 );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user