public function isAvailable()
{
$className = Utils::getShortName($this);
$config = Option::get('MAIL_' . $className);
if (!$config) {
$_config = array("mailgun_key" => "key-********************", 'mailgun_domain' => 'post.mloli.com', 'from' => '某科学的H本 <[email protected]>');
Option::set('MAIL_' . $className, json_encode($_config));
// 设定默认配置
return false;
}
return true;
}