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
c8d47097
Commit
c8d47097
authored
Jun 09, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
dcb02aa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
api/Common/functions.php
+3
-28
No files found.
api/Common/functions.php
View file @
c8d47097
...
@@ -314,42 +314,17 @@
...
@@ -314,42 +314,17 @@
// 通过 client 对象调用 SendSms 方法发起请求。注意请求方法名与请求对象是对应的
// 通过 client 对象调用 SendSms 方法发起请求。注意请求方法名与请求对象是对应的
$resp
=
$client
->
SendSms
(
$req
);
$resp
=
$client
->
SendSms
(
$req
);
// 输出 JSON 格式的字符串回包
// 输出 JSON 格式的字符串回包
var_dump
(
$resp
->
toJsonString
());
// var_dump($resp->toJsonString());
// 可以取出单个值,您可以通过官网接口文档或跳转到 response 对象的定义处查看返回字段的定义
// 可以取出单个值,您可以通过官网接口文档或跳转到 response 对象的定义处查看返回字段的定义
var_dump
(
$resp
->
getSendStatusSet
());
$content
=
$code
;
setSendcode
(
array
(
'type'
=>
'1'
,
'account'
=>
$mobile
,
'content'
=>
$content
));
}
}
catch
(
\TencentCloud\Common\Exception\TencentCloudSDKException
$e
)
{
catch
(
\TencentCloud\Common\Exception\TencentCloudSDKException
$e
)
{
$rs
[
'code'
]
=
1002
;
$rs
[
'code'
]
=
1002
;
$rs
[
'msg'
]
=
$e
->
getMessage
();
$rs
[
'msg'
]
=
$e
->
getMessage
();
}
}
// $result = '';
// if($result == NULL ) {
// $rs['code']=1002;
// $rs['msg']="获取失败";
// return $rs;
// }
// if($result->statusCode!=0) {
// //echo "error code :" . $result->statusCode . "<br>";
// //echo "error msg :" . $result->statusMsg . "<br>";
// //TODO 添加错误处理逻辑
// $rs['code']=1002;
// //$rs['msg']=$gets['SubmitResult']['msg'];
// $rs['msg']="获取失败";
// return $rs;
// }
// $content=$code;
// setSendcode(array('type'=>'1','account'=>$mobile,'content'=>$content));
return
$rs
;
return
$rs
;
}
}
...
...
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