/** * 发送短信 * @method send * @param [type] $phone [手机] * @param [type] $msg [内容参数] * @param [type] $tplName [模板名] * @author NewFuture */ private static function send($phone, $msg, $tplName) { if (null == self::$_handler) { $config = Config::getSecret('sms'); self::$_handler = new Service\Ucpaas($config['account'], $config['appid'], $config['token']); self::$_template = $config['template']; } return self::$_handler->send($phone, $msg, self::$_template[$tplName]); }