public function isAvailable()
{
$className = Utils::getShortName($this);
$config = Option::get('MAIL_' . $className);
if (!$config) {
$_config = array('region' => 'cn-hangzhou', 'accessKey' => 'yourAccessKey', 'accessSecret' => 'yourAccessSecret', 'accountName' => '[email protected]', 'tagName' => 'yourTagName', 'alias' => 'SS Cat');
Option::set('MAIL_' . $className, json_encode($_config));
// 设定默认配置
return false;
}
return true;
}