Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
quxiu
Commits
dcb02aa8
Commit
dcb02aa8
authored
Jun 09, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
b12c0cba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
api/Common/functions.php
+7
-8
No files found.
api/Common/functions.php
View file @
dcb02aa8
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment