|
@@ -43,7 +43,6 @@ class Qcloudsms extends Addons
|
|
|
public function smsSend(&$params)
|
|
|
{
|
|
|
$this->ConfigInit();
|
|
|
- var_dump($this->config['isTemplateSender']);
|
|
|
try {
|
|
|
if ($this->config['isTemplateSender'] == 1) {
|
|
|
$templateID = $this->config['template'][$params->event];
|
|
@@ -51,6 +50,7 @@ class Qcloudsms extends Addons
|
|
|
//普通短信发送
|
|
|
$this->sender = new SmsSingleSender($this->appid, $this->appkey);
|
|
|
$result = $this->sender->sendWithParam("86", $params['mobile'], $templateID, ["{$params->code}"], $this->config['sign'], "", "");
|
|
|
+ var_dump($result);
|
|
|
} else {
|
|
|
//语音短信发送
|
|
|
$this->sender = new TtsVoiceSender($this->appid, $this->appkey);
|