Commit 80402c8e by 王召彬

test

parent f5180b3e
...@@ -33,6 +33,7 @@ class Smscode ...@@ -33,6 +33,7 @@ class Smscode
$this->uid = App::getBean(User::class)->getId(); $this->uid = App::getBean(User::class)->getId();
} }
$commonConfigs = include dirname(__FILE__, 2).'/Config/config.php'; $commonConfigs = include dirname(__FILE__, 2).'/Config/config.php';
var_dump('commonConfigs',$this->config);
$this->config = $commonConfigs['tencent_sms']; $this->config = $commonConfigs['tencent_sms'];
} }
...@@ -67,7 +68,6 @@ class Smscode ...@@ -67,7 +68,6 @@ class Smscode
$vcode, $vcode,
$expireTime / 60 $expireTime / 60
]; ];
var_dump($this->config);
$ssender = new SmsSingleSender($this->config['appid'], $this->config['appkey']); $ssender = new SmsSingleSender($this->config['appid'], $this->config['appkey']);
$result = $ssender->sendWithParam("86", $mobile, $templateId, $params, $signName); $result = $ssender->sendWithParam("86", $mobile, $templateId, $params, $signName);
$result = json_decode($result, true); $result = json_decode($result, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment