问题描述:用户购买用户组后,用户组到期了,但是权限依然保留~VIP站点直接1万点暴击~站长吐血
适用版本:X3.2 以上
解决方法:
路径:source/function/function_core.php
搜索- foreach(explode("\t", $_G['member']['extgroupids']) as $extgroupid) {
- if($extgroupid = intval(trim($extgroupid))) {
- $groupidarray[] = $extgroupid;
- }
- }
复制代码
改成
- $groupterms = dunserialize(getuserprofile('groupterms'));
- foreach(explode("\t", $_G['member']['extgroupids']) as $extgroupid) {
- if($extgroupid = intval(trim($extgroupid))) {
- if($groupterms['ext'][$extgroupid] && $groupterms['ext'][$extgroupid] < TIMESTAMP){
- continue;
- }
- $groupidarray[] = $extgroupid;
- }
- }
复制代码
覆盖同名文件,更新缓存,bug解决(X3.4最新版~已经修复) |