<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\SmsTecmz\Provider; use ModStart\Core\Input\Response; use Module\Vendor\Provider\SmsSender\AbstractSmsSenderProvider; use Module\Vendor\Tecmz\Tecmz; class SmsSender extends AbstractSmsSenderProvider { private $api; public function __construct() { $this->api = Tecmz::instance(modstart_config('SmsTecmz_AppId'), modstart_config('SmsTecmz_AppSecret')); } public function name() { return 'tecmz'; } public function send($VaTf5, $Aj5L2, $QmY2j, $qOrzw = array()) { return $this->api->smsSend($VaTf5, modstart_config('SmsTecmz_Template_' . $Aj5L2), $QmY2j); } }