<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Oauth; class OauthUtil { public static function hasOauth() { goto BCFp0; UJdEa: if (self::isWechatEnable()) { return true; } goto a4M_V; BCFp0: if (self::isWechatMobileEnable()) { return true; } goto ONEfD; gAfcm: if (self::isWeiboEnable()) { return true; } goto UJdEa; ONEfD: if (self::isQQEnable()) { return true; } goto gAfcm; dIRnV: return false; goto hFx0V; a4M_V: if (self::isWechatMiniProgramEnable()) { return true; } goto dIRnV; hFx0V: } public static function isWechatMobileEnable() { if (modstart_config()->getWithEnv('oauthWechatMobileEnable', false)) { return true; } return false; } public static function isWechatMiniProgramEnable() { if (modstart_config()->getWithEnv('oauthWechatMiniProgramEnable', false)) { return true; } return false; } public static function isQQEnable() { if (modstart_config()->getWithEnv('oauthQQEnable', false)) { return true; } return false; } public static function isWechatEnable() { if (modstart_config()->getWithEnv('oauthWechatEnable', false)) { return true; } return false; } public static function isWeiboEnable() { if (modstart_config()->getWithEnv('oauthWeiboEnable', false)) { return true; } return false; } }