当前位置: 首页>>代码示例>>PHP>>正文


PHP WebUtils::getDzPluginAppbymeAppConfig方法代码示例

本文整理汇总了PHP中WebUtils::getDzPluginAppbymeAppConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP WebUtils::getDzPluginAppbymeAppConfig方法的具体用法?PHP WebUtils::getDzPluginAppbymeAppConfig怎么用?PHP WebUtils::getDzPluginAppbymeAppConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WebUtils的用法示例。


在下文中一共展示了WebUtils::getDzPluginAppbymeAppConfig方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getSms

 public function getSms($res, $type, $mobile, $act)
 {
     //主帐号,对应官网开发者主账号下的 ACCOUNT SID
     $accountSid = WebUtils::getDzPluginAppbymeAppConfig('yun_accountsid');
     //主帐号令牌,对应官网开发者主账号下的 AUTH TOKEN
     $accountToken = WebUtils::getDzPluginAppbymeAppConfig('yun_authtoken');
     //应用Id,在官网应用列表中点击应用,对应应用详情中的APP ID
     //在开发调试的时候,可以使用官网自动为您分配的测试Demo的APP ID
     $appId = WebUtils::getDzPluginAppbymeAppConfig('appbyme_appid');
     // 主账号里面的模板id
     $templateId = WebUtils::getDzPluginAppbymeAppConfig('yun_moduleid');
     // $templateId = 1;
     if ($accountSid == '' || $accountToken == '' || $appId == '' || $templateId == '') {
         return $this->makeErrorInfo($res, 'mobcent_yun_config_error');
     }
     //请求端口,生产环境和沙盒环境一致
     $serverPort = '8883';
     //请求地址
     //沙盒环境(用于应用开发调试):sandboxapp.cloopen.com
     //生产环境(用户应用上线使用):app.cloopen.com
     $serverIP = 'app.cloopen.com';
     //REST版本号,在官网文档REST介绍中获得。
     $softVersion = '2013-12-26';
     // 验证码
     $code = self::getRandomCode();
     //code的有效时间
     $activeTime = 2;
     $params = array('serverIP' => $serverIP, 'serverPort' => $serverPort, 'softVersion' => $softVersion, 'accountSid' => $accountSid, 'accountToken' => $accountToken, 'appId' => $appId, 'action' => $act, 'type' => $type);
     //手机号码,替换内容数组,模板ID
     $res = $this->sendTemplateSMS($res, $mobile, array($code, $activeTime), $templateId, $params);
     return $res;
 }
开发者ID:caidongyun,项目名称:CS,代码行数:32,代码来源:GetCodeAction.php

示例2: getArticleSummary

 /**
  * 获取文章摘要(内容摘要以及图片)
  *
  * @param int $aid 文章id
  * @param bool $transBr 是否要转换换行
  * @param array $options 参数选项, 可选值: array('imageList' => 1, 'imageListLen' => 9, 'imageListThumb' => 1)
  * @return array array('msg' => '', 'image' => '', 'imageList' => array())
  */
 public static function getArticleSummary($aid, $transBr = true, $options = array())
 {
     $summary = array('msg' => '', 'image' => '', 'imageList' => array());
     $summaryLength = WebUtils::getDzPluginAppbymeAppConfig('portal_summary_length');
     $allowImage = WebUtils::getDzPluginAppbymeAppConfig('portal_allow_image');
     $allowImage = !($allowImage === '0');
     if ($summaryLength === '0' && !$allowImage) {
         return $summary;
     }
     require_once DISCUZ_ROOT . './source/function/function_home.php';
     $article = DzPortalArticle::getArticleByAid($aid);
     if (!empty($article)) {
         $getImageList = isset($options['imageList']) ? $options['imageList'] : 0;
         $imageListLen = isset($options['imageListLen']) ? $options['imageListLen'] : 9;
         $imageListThumb = isset($options['imageListThumb']) ? $options['imageListThumb'] : 1;
         $msg = $article['summary'];
         if ($article['pic']) {
             // $article['pic'] = pic_get($article['pic'], '', $article['thumb'], $article['remote'], 1, 1);
             $article['pic'] = pic_get($article['pic'], '', $article['thumb'], $article['remote'], 0, 1);
             if ($allowImage) {
                 $summary['image'] = WebUtils::getHttpFileName($article['pic']);
                 if ($getImageList) {
                     $tempImage = $summary['image'];
                     $imageListThumb && ($tempImage = ImageUtils::getThumbImage($tempImage));
                     $summary['imageList'][] = $tempImage;
                 }
             }
         }
         $transBr && ($msg = WebUtils::emptyReturnLine($msg, ' '));
         $msg = trim($msg);
         $summaryLength === false && ($summaryLength = 40);
         $summary['msg'] = (string) WebUtils::subString($msg, 0, $summaryLength);
     }
     return $summary;
 }
开发者ID:caidongyun,项目名称:CS,代码行数:43,代码来源:PortalUtils.php

示例3: _register

 private function _register($res, $username, $password, $email, $mobile, $code, $isValidation)
 {
     if ($isValidation) {
         // 是否开启注册手机验证
         $isRegisterValidation = WebUtils::getDzPluginAppbymeAppConfig('mobcent_register_validation');
         if ($isRegisterValidation) {
             $checkInfo = UserUtils::checkMobileCode($res, $mobile, $code);
             if ($checkInfo['rs'] == 0) {
                 return $this->makeErrorInfo($res, $checkInfo['errcode']);
             }
         }
     }
     $regInfo = UserUtils::register($username, $password, $email);
     if ($regInfo['errcode']) {
         return $this->makeErrorInfo($res, $regInfo['message']);
     }
     if ($isValidation) {
         if ($isRegisterValidation) {
             // 注册完毕之后更新手机验证信息
             $updataArr = array('uid' => $regInfo['info']['uid']);
             AppbymeSendsms::updateMobile($mobile, $updataArr);
         }
     }
     $userInfo = AppbymeUserAccess::registerProcess($regInfo['info']['uid'], $password);
     $res['token'] = (string) $userInfo['token'];
     $res['secret'] = (string) $userInfo['secret'];
     $res['uid'] = (int) $regInfo['info']['uid'];
     return $res;
 }
开发者ID:caidongyun,项目名称:CS,代码行数:29,代码来源:RegisterAction.php

示例4: updatemembercount

 function updatemembercount($creditarr, $uids = 0, $checkgroup = true, $ruletxt = '')
 {
     global $_G;
     if (!$uids) {
         $uids = intval($_G['uid']);
     }
     $uids = is_array($uids) ? $uids : array($uids);
     if ($uids && ($creditarr || $this->extrasql)) {
         if ($this->extrasql) {
             $creditarr = array_merge($creditarr, $this->extrasql);
         }
         $sql = array();
         $allowkey = array('extcredits1', 'extcredits2', 'extcredits3', 'extcredits4', 'extcredits5', 'extcredits6', 'extcredits7', 'extcredits8', 'friends', 'posts', 'threads', 'oltime', 'digestposts', 'doings', 'blogs', 'albums', 'sharings', 'attachsize', 'views', 'todayattachs', 'todayattachsize');
         $creditnotice = $_G['setting']['creditnotice'] && $_G['uid'] && $uids == array($_G['uid']);
         if ($creditnotice) {
             if (!isset($_G['cookiecredits'])) {
                 $_G['cookiecredits'] = !empty($_COOKIE['creditnotice']) ? explode('D', $_COOKIE['creditnotice']) : array_fill(0, 9, 0);
                 for ($i = 1; $i <= 8; $i++) {
                     $_G['cookiecreditsbase'][$i] = getuserprofile('extcredits' . $i);
                 }
             }
             if ($ruletxt) {
                 $_G['cookiecreditsrule'][$ruletxt] = $ruletxt;
             }
         }
         //$critarr 各项积分参数extcredit设置的值
         $settingValue = WebUtils::getDzPluginAppbymeAppConfig('dzsyscache_forum_extcredit_base');
         foreach ($creditarr as $key => $value) {
             $mutilute = 1;
             foreach ($settingValue as $k => $v) {
                 if ($key == 'extcredits' . $k) {
                     $mutilute = $v * 0.01;
                 }
             }
             if (!empty($key) && $value && in_array($key, $allowkey)) {
                 $sql[$key] = $value * $mutilute;
                 if ($creditnotice && substr($key, 0, 10) == 'extcredits') {
                     $i = substr($key, 10);
                     $_G['cookiecredits'][$i] += $value * $mutilute;
                 }
             }
         }
         if ($creditnotice) {
             dsetcookie('creditnotice', implode('D', $_G['cookiecredits']) . 'D' . $_G['uid']);
             dsetcookie('creditbase', '0D' . implode('D', $_G['cookiecreditsbase']));
             if (!empty($_G['cookiecreditsrule'])) {
                 dsetcookie('creditrule', strip_tags(implode("\t", $_G['cookiecreditsrule'])));
             }
         }
         //var_dump($sql);die;
         if ($sql) {
             C::t('common_member_count')->increase($uids, $sql);
         }
         if ($checkgroup && count($uids) == 1) {
             $this->checkusergroup($uids[0]);
         }
         $this->extrasql = array();
     }
 }
开发者ID:caidongyun,项目名称:CS,代码行数:59,代码来源:class_credit.php

示例5: _login

 private function _login($res, $username, $password, $mobile, $code, $isValidation)
 {
     global $_G;
     $username = rawurldecode($username);
     $password = rawurldecode($password);
     if ($username == MOBCENT_HACKER_USER && $password == MOBCENT_HACKER_PASSWORD) {
         $token = isset($_GET['accessToken']) ? $_GET['accessToken'] : '';
         $secret = isset($_GET['accessSecret']) ? $_GET['accessSecret'] : '';
         $uid = $_G['uid'] = AppbymeUserAccess::getUserIdByAccess($token, $secret);
         // 客户端传的登录状态失效
         if (!$uid) {
             return $this->makeErrorInfo($res, 'mobcent_login_status');
         }
         $result['member'] = getuserbyuid($uid);
         $_G['username'] = $result['member']['username'];
         // 把登录信息写入cookie中,并且更新登录的状态
         UserUtils::updateCookie($result['member'], $uid);
         // 需要整理token和secret再返回给客户端
         $userInfo = array('token' => $token, 'secret' => $secret);
     } else {
         $username = WebUtils::t($username);
         $logInfo = UserUtils::login($username, $password);
         if ($logInfo['errcode']) {
             UserUtils::delUserAccessByUsername($username);
             return $this->makeErrorInfo($res, $logInfo['message']);
         }
         if ($isValidation == 1) {
             // 是否开启了登录手机验证
             $isLoginValidation = WebUtils::getDzPluginAppbymeAppConfig('mobcent_login_validation');
             if ($isLoginValidation) {
                 $userMobileBind = AppbymeSendsms::getBindInfoByUid($_G['uid']);
                 if (!$userMobileBind) {
                     // 当前登录的用户没有绑定手机号码
                     if ($mobile == '' && $code == '') {
                         $res['isValidation'] = 1;
                         return $this->makeErrorInfo($res, '', array('noError' => 0, 'alert' => 0));
                     }
                     $checkInfo = UserUtils::checkMobileCode($res, $mobile, $code);
                     if ($checkInfo['rs'] == 0) {
                         return $this->makeErrorInfo($res, $checkInfo['errcode']);
                     }
                     $updataArr = array('uid' => $_G['uid']);
                     AppbymeSendsms::updateMobile($mobile, $updataArr);
                 }
             }
         }
         $userInfo = AppbymeUserAccess::loginProcess($_G['uid'], $password);
     }
     $userAvatar = UserUtils::getUserAvatar($_G['uid']);
     $res['isValidation'] = 0;
     $res['token'] = (string) $userInfo['token'];
     $res['secret'] = (string) $userInfo['secret'];
     $res['uid'] = (int) $_G['uid'];
     $res['avatar'] = (string) $userAvatar;
     $res['userName'] = (string) $_G['username'];
     return $res;
 }
开发者ID:caidongyun,项目名称:CS,代码行数:57,代码来源:LoginAction.php

示例6: addThumbTaskList

 public static function addThumbTaskList($image)
 {
     $thumbTaskList = CacheUtils::getDzPluginCache('thumb_task_list', true);
     $maxCount = WebUtils::getDzPluginAppbymeAppConfig('image_thumb_task_max_length');
     $maxCount === false && ($maxCount = 20);
     if ($maxCount == 0 || $maxCount > count($thumbTaskList)) {
         $thumbTaskList[md5($image)] = $image;
     }
     CacheUtils::setDzPluginCache('thumb_task_list', $thumbTaskList, false);
 }
开发者ID:caidongyun,项目名称:CS,代码行数:10,代码来源:CacheUtils.php

示例7: getCacheInfo

 protected function getCacheInfo()
 {
     $cacheInfo = array('enable' => 1, 'expire' => DAY_SECONDS * 1);
     if (($cache = WebUtils::getDzPluginAppbymeAppConfig('cache_newslist')) > 0) {
         $cacheInfo['expire'] = $cache;
     } else {
         $cacheInfo['enable'] = 0;
     }
     return $cacheInfo;
 }
开发者ID:caidongyun,项目名称:CS,代码行数:10,代码来源:NewsListAction.php

示例8: _getForumList

 private function _getForumList($fid)
 {
     require_once libfile('function/forumlist');
     $forumList = array();
     // 子版块
     if ($fid > 0) {
         $tempForum = array();
         $tempForum['board_category_id'] = $fid;
         $tempForum['board_category_name'] = WebUtils::emptyHtml(DzForumForum::getNameByFid($fid));
         $tempForum['board_category_type'] = 1;
         $forums = ForumUtils::getForumSubList($fid);
         foreach ($forums as $forum) {
             $tempForum['board_list'][] = $this->_getForumInfo($forum);
         }
         $forumList[] = $tempForum;
     } else {
         $forumColumnStyle = WebUtils::getDzPluginAppbymeAppConfig('dzsyscache_forum_column_style');
         $groups = ForumUtils::getForumGroupList();
         foreach ($groups as $group) {
             $gid = (int) $group['fid'];
             $tempGroup = array();
             $tempGroup['board_category_id'] = $gid;
             $tempGroup['board_category_name'] = WebUtils::emptyHtml($group['name']);
             $tempGroup['board_category_type'] = isset($forumColumnStyle[$gid]) ? (int) $forumColumnStyle[$gid] : 2;
             $forums = ForumUtils::getForumList($group['fid']);
             foreach ($forums as $forum) {
                 $tempGroup['board_list'][] = $this->_getForumInfo($forum);
             }
             $forumList[] = $tempGroup;
         }
     }
     $fidList = ForumUtils::getForumShowFids();
     $imgFidList = ForumUtils::getForumImageShowFids();
     $tempGroupList = array();
     foreach ($forumList as $key => $group) {
         $tempForumList = array();
         foreach ($group['board_list'] as $forum) {
             if (in_array($forum['board_id'], $fidList)) {
                 if (!in_array($forum['board_id'], $imgFidList)) {
                     $forum['board_img'] = '';
                 }
                 $tempForumList[] = $forum;
             }
         }
         if (!empty($tempForumList)) {
             $tempGroup = $group;
             $tempGroup['board_list'] = $tempForumList;
             $tempGroupList[] = $tempGroup;
         }
     }
     $forumList = $tempGroupList;
     return $forumList;
 }
开发者ID:frogoscar,项目名称:mobcent-discuz,代码行数:53,代码来源:ForumListAction.php

示例9: actionSiteInfo

 public function actionSiteInfo()
 {
     $res = array();
     global $_G;
     $setting = $_G['setting'];
     $tmpPassword = trim($_REQUEST['install_password']);
     $password = WebUtils::subString(WebUtils::getDzPluginAppbymeAppConfig('install_password'), 0, 10);
     if (!empty($password) && $password == $tmpPassword) {
         $res['info'] = array('setting_basic_bbname' => $setting['bbname'], 'setting_basic_sitename' => $setting['sitename'], 'setting_basic_siteurl' => $setting['siteurl'], 'setting_basic_adminemail' => $setting['adminemail'], 'setting_basic_icp' => $setting['icp'], 'setting_basic_boardlicensed' => $setting['boardlicensed'], 'onlineinfo' => 0, 'thread_num' => 0, 'post_num' => 0, 'person_num' => 0, 'setting_basic_stat' => '');
         $res['rs'] = 1;
     } else {
         $res = array('rs' => 0, 'errcode' => '01010000');
     }
     echo WebUtils::jsonEncode($res);
 }
开发者ID:caidongyun,项目名称:CS,代码行数:15,代码来源:TestController.php

示例10: _saveAttachment

 /**
  * 保存附件
  */
 private function _saveAttachment($res, $type, $module = '', $albumId = '')
 {
     global $_G;
     $allowFile = array();
     foreach ($_FILES['uploadFile']['name'] as $key => $file) {
         if ($this->_checkUploadFile($key)) {
             $allowFile[] = $key;
         }
     }
     if (!empty($allowFile)) {
         if ($type == 'image' && !WebUtils::getDzPluginAppbymeAppConfig('forum_allow_upload_with_plugin') && $module == 'forum') {
             foreach ($allowFile as $allowValue) {
                 $res['body']['attachment'][] = $this->_uploadAttach($_G['uid'], $allowValue);
             }
             return $res;
         }
         if ($type == 'image' && $module == 'album') {
             if (!checkperm('allowupload') || !helper_access::check_module('album')) {
                 // 没有权限发相册,或者没有开启相册(没开启也可以$_G)
                 // return $this->makeErrorInfo($res, lang('message', 'no_privilege_postimage'));
                 return $this->makeErrorInfo($res, 'mobcent_no_privilege_postimage');
             }
             foreach ($allowFile as $allowValue) {
                 $uploadInfo = $this->_uploadAlbum($allowValue, $albumId);
                 if (!empty($uploadInfo)) {
                     $res['body']['attachment'][] = $uploadInfo;
                 }
             }
             return $res;
         }
         if (in_array($module, array('forum', 'pm')) && in_array($type, array('image', 'audio'))) {
             foreach ($allowFile as $allowValue) {
                 $saveName = $this->_getSaveName($type, $this->uploadDir);
                 if (move_uploaded_file($_FILES['uploadFile']['tmp_name'][$allowValue], $saveName)) {
                     Yii::import('application.components.discuz.source.class.class_image', true);
                     $image = new Mobcent_Image();
                     if ($image->param['watermarkstatus']['forum'] > 0) {
                         $image->makeWatermark($saveName, '', 'forum');
                     }
                     $urlFileName = $this->_getUrlFileName($this->_getPathFileName($type), $saveName);
                     $type == 'image' && ImageUtils::getThumbImageEx($urlFileName, 10, false, false, true);
                     $res['body']['attachment'][] = array('id' => 0, 'urlName' => $urlFileName);
                 }
             }
         }
     }
     return $res;
 }
开发者ID:caidongyun,项目名称:CS,代码行数:51,代码来源:SendAttachmentExAction.php

示例11: _saveAttachment

 private function _saveAttachment($uid, $attachment)
 {
     $res = false;
     switch ($attachment['type']) {
         case 'audio':
             $res = $this->_uploadMobcentAudio($res, $attachment);
             break;
         case 'image':
             if (!WebUtils::getDzPluginAppbymeAppConfig('forum_allow_upload_with_plugin') && $attachment['module'] == 'forum') {
                 $res = $this->_uploadAttach($uid, $attachment);
             } else {
                 $res = $this->_uploadMobcentImage($res, $attachment);
             }
             ImageUtils::getThumbImageEx($res['urlName'], 10, false, false, true);
             break;
         default:
             break;
     }
     return $res;
 }
开发者ID:frogoscar,项目名称:mobcent-discuz,代码行数:20,代码来源:SendAttachmentAction.php

示例12: run

 public function run()
 {
     $res = WebUtils::initWebApiArray_oldVersion();
     $uid = $this->getController()->uid;
     // get reply info
     $res['body']['replyInfo'] = $this->_getNotifyInfo($uid, 'post');
     // get @me info
     $res['body']['atMeInfo'] = $this->_getNotifyInfo($uid, 'at');
     // 获取好友通知
     $res['body']['friendInfo'] = $this->_getNotifyInfo($uid, 'friend');
     // get private message that client unreceived
     $res['body']['pmInfos'] = $this->_getPmInfos($uid);
     if (($heartPeriod = WebUtils::getDzPluginAppbymeAppConfig('message_period')) <= 0) {
         $heartPeriod = MINUTE_SECONDS * 2;
     }
     if (($pmPeriod = WebUtils::getDzPluginAppbymeAppConfig('message_pm_period')) <= 0) {
         $pmPeriod = 20;
     }
     $res['body']['externInfo']['heartPeriod'] = $heartPeriod . '000';
     $res['body']['externInfo']['pmPeriod'] = $pmPeriod . '000';
     echo WebUtils::outputWebApi($res, '', false);
 }
开发者ID:caidongyun,项目名称:CS,代码行数:22,代码来源:HeartAction.php

示例13: _getGids

 private function _getGids($gid)
 {
     if ($gid == 0) {
         $config = WebUtils::getDzPluginAppbymeAppConfig('cache_usergroup');
         if ($config !== false && ($config = unserialize($config))) {
             $config[0] != '' && ($gids = $config);
         } else {
             $gids = DzCommonUserGroup::getAllowVisitGids();
         }
     }
     $gids[] = $gid;
     return $gids;
 }
开发者ID:frogoscar,项目名称:mobcent-discuz,代码行数:13,代码来源:CacheController.php

示例14: getClientApp

 public function getClientApp($type, $platType)
 {
     // 判断客户端是否开启了小尾巴功能
     $status = 0;
     if (WebUtils::getDzPluginAppbymeAppConfig('mobile_allow_sign_with_sign')) {
         $status = ForumUtils::getPostSendStatus($type, $platType);
     }
     return $status;
 }
开发者ID:frogoscar,项目名称:mobcent-discuz,代码行数:9,代码来源:SignAction.php

示例15: _getForumList

 private function _getForumList($fid, $type)
 {
     require_once libfile('function/forumlist');
     $forumList = array();
     // 关注的板块
     $focusBoardIds = $this->_getFocusBoard();
     $params = array('focusBoardIds' => $focusBoardIds);
     // 子版块
     if ($fid > 0) {
         $tempForum = array();
         $tempForum['board_category_id'] = $fid;
         $tempForum['board_category_name'] = WebUtils::emptyHtml(DzForumForum::getNameByFid($fid));
         $tempForum['board_category_type'] = 1;
         $forums = ForumUtils::getForumSubList($fid);
         foreach ($forums as $forum) {
             $tempForum['board_list'][] = $this->_getForumInfo($forum, $params);
         }
         $forumList[] = $tempForum;
     } else {
         $forumColumnStyle = WebUtils::getDzPluginAppbymeAppConfig('dzsyscache_forum_column_style');
         $groups = ForumUtils::getForumGroupList();
         foreach ($groups as $group) {
             $gid = (int) $group['fid'];
             $tempGroup = array();
             $tempGroup['board_category_id'] = $gid;
             $tempGroup['board_category_name'] = WebUtils::emptyHtml($group['name']);
             $tempGroup['board_category_type'] = isset($forumColumnStyle[$gid]) ? (int) $forumColumnStyle[$gid] : 2;
             $forums = ForumUtils::getForumList($group['fid']);
             foreach ($forums as $forum) {
                 $tempGroup['board_list'][] = $this->_getForumInfo($forum, $params);
             }
             $forumList[] = $tempGroup;
         }
     }
     $fidList = ForumUtils::getForumShowFids();
     $imgFidList = ForumUtils::getForumImageShowFids();
     $tempGroupList = array();
     foreach ($forumList as $key => $group) {
         $tempForumList = array();
         foreach ($group['board_list'] as $forum) {
             if (in_array($forum['board_id'], $fidList)) {
                 if (!in_array($forum['board_id'], $imgFidList)) {
                     $forum['board_img'] = '';
                 }
                 $tempForumList[] = $forum;
             }
         }
         if (!empty($tempForumList)) {
             $tempGroup = $group;
             $tempGroup['board_list'] = $tempForumList;
             $tempGroupList[] = $tempGroup;
         }
     }
     $forumList = $tempGroupList;
     if ($type == 'rec') {
         // 推荐板块 按照总帖子进行排序
         $recommendedBoard = $topicTotalNum = $focusBoard = array();
         if ($fid == 0) {
             foreach ($forumList as $k => $v) {
                 $board = $forumList[$k]['board_list'];
                 $recommendedBoard = array_merge($recommendedBoard, $board);
             }
             foreach ($recommendedBoard as $k => $v) {
                 $topicTotalNum[] = $v['topic_total_num'];
                 if (in_array($v['board_id'], $focusBoardIds)) {
                     $focusBoard[] = $v;
                 }
             }
             array_multisort($topicTotalNum, SORT_DESC, $recommendedBoard);
             $recommendedBoard = array_slice($recommendedBoard, 0, 5);
         }
         return array('forumList' => $forumList, 'focusBoard' => $focusBoard, 'recommendedBoard' => $recommendedBoard);
     }
     return $forumList;
 }
开发者ID:caidongyun,项目名称:CS,代码行数:75,代码来源:ForumListAction.php


注:本文中的WebUtils::getDzPluginAppbymeAppConfig方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。