首页| 版块| 我的| 发帖| 消息
主题:测试排行榜会员排行页面排序调整及主题标签长度修改
zhangjingyu 
经测试,后台pw缓存库对应的php文件是lib/elementupdate.class.php。楼上提到的很可能是会员排行榜的相关函数是userSortUpdate()(楼上红色标定。下面的代码略有修改,但没能成功实现):
“    function userSortUpdate($winddb) {
        global $timestamp, $tdtime, $montime, $_CREDITDB;
        if ($this->_inUidBlackList($winddb['uid'])) {
            return false;
        }
        $usersort_judge = array();
        //* include pwCache::getPath(D_P . 'data/bbscache/usersort_judge.php');
        extract(pwCache::getData(D_P . 'data/bbscache/usersort_judge.php', false));
        $winddb['lastpost'] < $tdtime && $winddb['todaypost'] = 0;
        $winddb['lastpost'] < $montime && $winddb['monthpost'] = 0;
        $sorttype = array(
            'money',
            'rvrc',
            'credit',
            'currency',
            'todaypost',
            'monthpost',
            'postnum',
            'monoltime',
            'onlinetime',
            'digests',
            'f_num'
        );
        if ($_CREDITDB) {
            $query = $this->db->query("SELECT cid,value FROM pw_membercredit WHERE uid=" . S::sqlEscape($winddb['uid']));
            while ($rt = $this->db->fetch_array($query)) {
                if (!$rt['value']) continue;
                $winddb[$rt['cid']] = $rt['value'];
            }
            foreach ($_CREDITDB as $key => $val) {
                is_numeric($key) && $sorttype[] = $key;
            }
        }
        $change = $marks = array();
        foreach ($sorttype as $value) {
            if (in_array($value,$sorttype) && $winddb[$value]>PW_OVERFLOW_NUM) {
                $this->_excuteOverflow($winddb['u
zhangjingyu回帖于2020-09-23 22:18[查看电脑版]
下一页 (1/7)
下一楼»:然而,在后台点击更新缓存,会员排行页面却不能更新为准确的数据(这个页面的数据一直都不准确, ..
«上一楼:后台pw缓存库里有一个缓存设置“会员信息(总发帖,本月发帖,今日发帖,在线时间,会员积分)”,这个 ..

查看全部回帖(58)
«返回主帖