<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Res\Auth; use Module\Member\Auth\MemberGroup; use Module\Member\Auth\MemberUser; use Module\MemberCert\Util\MemberCertUtil; class MemberRes { public static function canUpload() { return self::canMemberGroupUpload() && self::canMemberCertUpload(); } private static function canMemberGroupUpload() { goto OtnCF; ZfVbO: return MemberGroup::inGroupIds($fccWO); goto I8UQ_; OtnCF: if (!modstart_config('Res_UploadLimitMemberGroupEnable', false)) { return true; } goto Bp1Ha; Bp1Ha: $fccWO = modstart_config('Res_UploadLimitMemberGroups', '[]'); goto ZfVbO; I8UQ_: } private static function canMemberCertUpload() { goto HNJ2Q; j5huy: if (!modstart_config('Res_UploadMemberCertEnable', false)) { return true; } goto VxMrV; HNJ2Q: if (!modstart_module_enabled('MemberCert')) { return true; } goto j5huy; VxMrV: $oU7zO = MemberCertUtil::getCertType(MemberUser::id()); goto J105c; J105c: return !!$oU7zO; goto Iekk8; Iekk8: } }