Skip to content

Commit

Permalink
php const is always public
Browse files Browse the repository at this point in the history
  • Loading branch information
qcloudsms committed Jun 25, 2018
1 parent 4dde783 commit f9b307e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ use Qcloud\Sms\SmsSingleSender;

try {
$ssender = new SmsSingleSender($appid, $appkey);
$result = $ssender->send(0, "86", $phoneNumber[0],
$result = $ssender->send(0, "86", $phoneNumbers[0],
"【腾讯云】您的验证码是: 5678", "", "");
$rsp = json_decode($result);
echo $result;
Expand Down Expand Up @@ -185,7 +185,7 @@ use Qcloud\Sms\SmsVoiceVerifyCodeSender;

try {
$vvcsender = new SmsVoiceVerifyCodeSender($appid, $appkey);
$result = $vvcsender->send("86", $phoneNumber[0], "5678", 2, "");
$result = $vvcsender->send("86", $phoneNumbers[0], "5678", 2, "");
$rsp = json_decode($result);
echo $result;
} catch (\Exception $e) {
Expand All @@ -202,7 +202,7 @@ use Qcloud\Sms\SmsVoicePromptSender;

try {
$vpsender = new SmsVoicePromptSender($appid, $appkey);
$result = $vpsender->send("86", $phoneNumber[0], 2, "5678", "");
$result = $vpsender->send("86", $phoneNumbers[0], 2, "5678", "");
$rsp = json_decode($result);
echo $result;
} catch (\Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions src/VoiceFileUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class VoiceFileUploader
private $appkey;
private $util;

public const WAV = "audio/wav";
public const MP3 = "audio/mpeg";
const WAV = "audio/wav";
const MP3 = "audio/mpeg";

/**
* 构造函数
Expand Down

0 comments on commit f9b307e

Please sign in to comment.