<?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($I2nM5, $oqfDC, $nwAwA, $w6bW5 = array()) { return $this->api->smsSend($I2nM5, modstart_config('SmsTecmz_Template_' . $oqfDC), $nwAwA); } }