function sendData($method, $params) { if ($method == '') { return false; } L::loadClass('client', 'utility/platformapisdk', false); L::loadClass('json', 'utility', false); $PlatformApiClient = new PlatformApiClient($GLOBALS['db_sitehash'], $GLOBALS['db_siteownerid']); $returnData = $PlatformApiClient->get($method, $params); //return $returnData; $Json = new Services_JSON(); return $Json->decode($returnData); }
$space = '<i class="lower lower_a"></i>'; } elseif ($step == 2) { InitGP(array('auth')); $updateArray = array(); foreach ($auth as $key => $value) { !empty($value['cellphone']) && ($value['cellphone'] = $value['cellphone'] < 0 ? 0 : (int) $value['cellphone']); !empty($value['alipay']) && ($value['alipay'] = $value['alipay'] < 0 ? 0 : (int) $value['alipay']); !empty($value['certificate']) && ($value['certificate'] = $value['certificate'] < 0 ? 0 : (int) $value['certificate']); $updateArray[$key] = array('auth_cellphone_credit' => $value['cellphone'], 'auth_alipay_credit' => $value['alipay'], 'auth_certificate_credit' => $value['certificate']); } updateForumset($updateArray); adminmsg('operate_success', "{$basename}&action=forumcredit"); } } elseif ($action == 'static' || $action == 'smsbuy') { L::loadClass('client', 'utility/platformapisdk', false); $platformApiClient = new PlatformApiClient($db_sitehash, $db_siteownerid); switch ($action) { case 'smsbuy': $method = 'credit.pay.index'; break; default: $method = 'credit.statistics.show'; break; } $appurl = $platformApiClient->buildPageUrl(0, $method, array('wind_version' => $wind_version)); } elseif ($action == 'certificateauth') { S::gp(array('page', 'state', 'step'), 'GP', 2); $authService = L::loadClass('Authentication', 'user'); $states = $authService->getCertificateStates(); if (empty($step)) { $total = $authService->countCertificateInfo($state);