public function getLogin($params) { $getobj = new \module\mzkserver(); $res = $getobj->getLogin($params); echo json_encode(array("total" => $res['total'], "data" => $res['data'])); }