protected function allBefore()
{
/* # 检查短信平台地址 */
if (!$this->url) {
$this->setMessage('短信平台地址为空');
return false;
/* # 检查手机号码是否为空 */
} elseif (!$this->phone) {
$this->setMessage('手机号码不能为空');
return false;
/* # 检查CURL对象 */
} elseif (!$this->curl) {
$this->setMessage('初始化发送组建失败!');
}
return true;
}