Commit dcb02aa8 by 冷斌

fix bug

parent b12c0cba
......@@ -258,9 +258,6 @@
return $rs;
}
var_dump($mobile,$code, $tempId);
var_dump('aabbccdd');
try {
require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
/* 必要步骤:
......@@ -318,17 +315,19 @@
// 通过 client 对象调用 SendSms 方法发起请求。注意请求方法名与请求对象是对应的
$resp = $client->SendSms($req);
// 输出 JSON 格式的字符串回包
print_r($resp->toJsonString());
var_dump($resp->toJsonString());
// 可以取出单个值,您可以通过官网接口文档或跳转到 response 对象的定义处查看返回字段的定义
print_r($resp->TotalCount);
var_dump($resp->getSendStatusSet());
}
catch(\TencentCloud\Common\Exception\TencentCloudSDKException $e) {
var_dump($e);
echo $e;
$rs['code']=1002;
$rs['msg']=$e->getMessage();
}
die;
......
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