function act_getPlatformList() { global $memc_obj; $id = !empty($_GET['id']) ? $_GET['id'] : ''; $cacheName = md5("om_system_platform" . $id); $list = $memc_obj->get_extral($cacheName); if ($list) { return json_encode($list); } else { $accountList = omAccountModel::platformList($id); if (!$accountList) { self::$errCode = 101; self::$errMsg = "没取到账号列表!"; return false; } else { $isok = $memc_obj->set_extral($cacheName, $accountList); if (!$isok) { self::$errCode = 102; self::$errMsg = 'memcache缓存账号信息出错!'; return json_encode($accountList); } return json_encode($accountList); } } }