Discuz! X1.5礼品兑换插件BUG修复

discuz1.5礼品兑换插件BUG修复。
打开source/class/class_upload.php,找到function get_target_dirfunction check_dir_type,照着如下红色部分修改:

if($type == ‘eg_gift’ || $type == ‘album’ || $type == ‘forum’ || $type == ‘portal’ || $type == ‘paimai’ || $type == ‘category’) {
$subdir1 = date(‘Ym’);
$subdir2 = date(‘d’);
$subdir = $subdir1.’/’.$subdir2.’/’;
} elseif($type == ‘group’ || $type == ‘common’) {
$subdir = $subdir1 = substr(md5($extid), 0, 2).’/’;
}
$check_exists && discuz_upload::check_dir_exists($type, $subdir1, $subdir2);
return $subdir;
}
//增加图片存储文件夹eg_gift
return !in_array($type, array(‘eg_gift’,’forum’, ‘group’, ‘album’, ‘portal’, ‘paimai’,’common’, ‘temp’, ‘category’)) ? ‘temp’ : $type;

黑侠网络,免费分享互联网!
我的主页 黑侠网络 » Discuz! X1.5礼品兑换插件BUG修复