'多客服', MallConst::bizCodeEnableMms => '后台管理', MallConst::bizCodeEnablePddPurchase => '采购拼多多', ]; } public static function getBizCodeNameMap() { return [ self::bizCodeShowBrowserPluginUpdateAlert => '浏览器插件升级弹窗', self::bizCodeShowBrowserPluginAlertNextBtn => '浏览器插件升级弹窗下一次按钮', self::bizCodeAuthShopOuterId => 'authShopOuterId', self::bizCodeFullRsyncOpOrder => 'fullRsyncOpOrder', self::bizCodeForbidRsyncOpOrder => 'forbidRsyncOpOrder', self::bizCodeEnableChat => 'enableChat', self::bizCodeEnableMms => 'enableMms', self::bizCodeEnableLoginMms => 'enableLoginMms', self::bizCodeEnablePddPurchase => 'enablePddPurchase', self::bizCodeEnableSubAccount => 'enableSubAccount', ]; } public static function getWhitelistBizCodes() { return array ( self::bizCodeAuthShopOuterId, self::bizCodeFullRsyncOpOrder, self::bizCodeForbidRsyncOpOrder, self::bizCodeEnableChat, self::bizCodeEnableMms, self::bizCodeEnablePddPurchase, self::bizCodeEnableSubAccount, self::bizCodeShowBrowserPluginUpdateAlert, self::bizCodeShowBrowserPluginAlertNextBtn, ); } public static function getBlacklistBizCodes() { return array( self::blacklistBizCodeUserPayment, ); } public static function getBlacklistBizCodeNameMap() { return array( self::blacklistBizCodeUserPayment => '订购黑名单', ); } public static function getBlacklistNameByBizCode($bizCode) { $blacklistBizCodeNameMap = self::getBlacklistBizCodeNameMap(); return $blacklistBizCodeNameMap[$bizCode]; } public static function isLegalWhitelistBizCode($bizCode) { $bizCodes = self::getWhitelistBizCodes(); return $bizCode && in_array($bizCode, $bizCodes); } public static function isLegalBlacklistBizCode($bizCode) { $bizCodes = self::getBlacklistBizCodes(); return $bizCode && in_array($bizCode, $bizCodes); } }