doGet(YAO_SCHEDULER_ADDR . '?action=get_counter'); $msg = json_decode($spider->getBody(), true); $res['counter'] = $msg['counter']; $res['counterTotal'] = $msg['counterTotal']; $res['errno'] = Code::SUCCESS; return $res; } function debug_get_bindings() { if (!AccessController::hasAccess(Session::get('role', 'visitor'), 'system.summary')) { $res['errno'] = Code::NO_PRIVILEGE; return $res; } $spider = new Spider(); $spider->doGet(YAO_SCHEDULER_ADDR . '?action=get_bindings'); $msg = json_decode($spider->getBody(), true); $res['data'] = $msg; $res['errno'] = Code::SUCCESS; return $res; }